Make package restore robust to database downtime (blob names lowercased, gallerysettings gone)

Summary of main changes:
1) Move all the gallerysettings stuff into CSCFG, so we don't need to load it from DB for most requests
2) Handle SQL exceptions in ApiController
3) use standardized lower case blob names for nupkgs