Instantiate API as a singleton that contains an express app.
Expose mongoose to allow tests to change database.
Add test initialization file.
Fix merge conflicts.
Merge branch '1051_api_main_class' into develop