Register json-patch mime-type during init

Since rest.js's mime registry is a singleton, this seems fine for now.
Ideally, we'd be able to create a rest client instance with its own
registry and use that when constructing a JsonPatch instance.