Improve JSON Patch support.

Update Rest and JsonPatch adapters to provide better default rest.js
client support.  JsonPatch now specifies the correct
application/json-patch+json content-type in patch requests.

jsonPatch.js's default array hashing strategy only uses array indexes
now, instead of using an id if present.  This works better with
Entity-based backend collections, like Spring+JPA.  Still not perfect
by any means, but working.

Clean up bower.json and package.json