Added supertest for API and other express testing
Updated settings and mongoose connections to use a test database if testing and the production if not. Added pending test stubs for the applications REST api.