Much better code.

Also documented WTF is going on.
Pre and post JSON formatters for all HTTP verbs.

Wasn't returning properly formatted JSON response for single objects.