Issue #17: Fixed schemas with new lines issue.

Integrated google-gson for more reliable serialization over the wire.
Added tests for JSON.
Client tests now submitted to persistence/multi-line tests.
Issue #17: Stylistic changes.

Accept header now handled in a single function per REST endpoint, as suggested by @eric239.