Moving application and routes to web module
Minor fix order on get IOLoop instance