Split config into GlobalConfig and Configuration

This is the structure we're going to use to store config objects in
CouchDB.