Testing updates.

Updated the mongo access constructor so it'd work better with testing.
Changed direct access to MONGO_HOST to using the settings proxy in all files.