create restful.js

Ported directly from http://docs.appcelerator.com/backbone/0.9.2/docs/backbone.html#section-162 but using the Titanium.Network.HTTPClient to make the http request instead of jQuery.ajax