Add ability to load configuration from the database

This is to support the dockerisation of the server.

Will also implement a full environment variables system in future.
I know that this got nothing to do with this review (it just diffs because of identation), but can't we just use http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html#valueOf(java.lang.String)? :-)