change routing info to controllers, complete rewrite of routes.js to static file provider