Move route and error handlers to raneto.js