new server/components structure

create api components
initialise mongo when the server starts and before the http service starts
inject controllers into routes
inject services into controllers