A new model for public libraries is taking shape in San Francisco, and its impact could reach far beyond the Bay Area. Itay Hod reports.