move routes & models setup to the config dir