Output correct content-type with API responses.

Fixes #281
Merge pull request #282 from vmarmol/content-type

Output correct content-type with API responses.