Database config query

This adds JSON endpoints to query all available configurations and collections to the admin application where the facia fronts tool lives.

The main consumers of this will be the Facia fronts app and the Facia tool.

This is a part of the move to have the configuration in a database instead of in code. The new mechanism for configured facia pages will use this to figure out what pages are available. (Although it will use the internal database calls rather than the endpoints) The tool will use it in the same way.

This pull request also changes the way history is stored. History is no longer stored along side what it is keeping a history of, instead it is namespaced with history. This allows querying of the configs and collections.