updating routes to be more restful
updating server to handle new rest api
updating server tests for new restful api