Server 422s invalidate saving models.

This is a subset of PR #87 restricted to handling 422s.

- handles `createRecord` and `updateRecord`.  Multirecord case is more
  complicated because of mapping errors to records.