Re-orgainsed some application init code.
Fixed a couple of bugs.
Upgraded a page I missed to use the promise api.
Added the mongo database to git ignore.
Fixed up some i18n stuff.
Fixed up a couple of misc errors.