added task to lint code for editorconfig compat
refactor middlewares out of main app file
added winston for logging and created logging wrapper
have winston manage uncaught exceptions