factor out storage backends into lib/storages.js.
oops, forgot to add lib/storages.js.