added basic RESTful functionality