Refactored route registration
Added more JSDoc and made router stateless again
Moved html body in a handlebars template for future loader work