Made the buckets state machine types easier to follow
Allow database config to be dynamically discovered

Given a -config-svc base URL, unconfigured buckets are dynamically
requested as baseurl + bucketname when a bucket isn't resident or on
local disk.  If that resource returns 200 and we can parse the result as
JSON, we parse this into a bucket settings struct and create the
requested bucket.