Remove temporary mongo stuff
Allow port override from environment
Refactored api into controllers file