moved into DS.RESTAdapter and added bulkCommit support