checkpoint: restapi PUT/PATCH for Photo.rating

* ERROR: doesn't handle crossDomain POST correctly. may need to push backend to same domain.
checkpoint: restapi PUT/PATCH for Photo.rating

* move save() from View to Model
* tap into Photo.sync() for pre-flight changes to Backbone.sync()
* change PUT/POST params to correct form, add Workorder params
* added useRestApi=true/false to change post format between RestApi and Cakephp POST
Merge branch 'master' into restapi-PUT
refactored