refactor content_type filter code
gracefully handle parameter parse errors for api json requests
Merge pull request #2 from camallen/ed_allow-json-only

refactor ContentTypeFilter and gracefully handle invalid json params