Some major refactoring

* Use other libraries (lib-noir, ring-middleware-mime-extensions) when possible
* Move code into separate namespaces
* Fix Mongo configuration
* Add configuration
* Add logging