Setup routes and connect to firebase