Shifting API functions to RESTful HTTP methods

Also added method overrides in POST function, and beginning of study-creation logic. Moved study-update logic to the PUT function and added a stub for DELETE.

This addresses issues #20 and #29.