added routes and models loaders
added server event listeners for error handling