Updated API to work with Backbone.js RESTful requests.