Adds helpers to control accept headers and content type.
Adds API controller tests.

Fixes some issues with default accepts.