totally refactoring app.js using exports so its not disgustingly difficult to find things when everything is in the same file. It does not currently work due to attempting to put the routes into an exported object and conflicts with the authentication needed to make this work