split routes and app skeleton into separate files