Further defines the application structure and moves routes into a separate file.