Majority of changes made, middleware inserted into most routes in the api. Commited before testing.