The public library has morphed into vibrant new community spaces