Accept JSON for creating a new patient.

This resolves issue #29.