Add checks for app/json - issue #2515

See Issue #2515

Produces a nice error msg when the Content-Type is missing/wrong - instead of just a generic 500.
Sort of finishes up #5070.

Signed-off-by: Doug Davis <dug@us.ibm.com>