Updated the creation of the server.
Removed console.log.
Added getContext, getRequest and getResponse functions.
Check the name of the view from the getRequest function.
Move everything to the context of the controller.