Initializes routes and models