Added RESTful routes and tied everything out