Improve json_handler decorator

It will now sanely respond with a 405 error if the method is not POST or
a 400 error if the input is invalid. A wrapped function can now indicate
by raising a certain exception that a status code other than 200 or 500
should be returned.
Fix typo in exception text
Merge pull request #213 from IONISx/fix-exception-typo

Fix typo in exception text
Correctly count the number of pylint violations
Fix pylint errors; dummy var regex
report total pylint violations regardless
Merge pull request #216 from singingwolfboy/db/fix-pylint-script

Correctly count the number of pylint violations
Merge pull request #211 from edx/gprice/improve-json-handler

Improve json_handler decorator
Enforce type of the Fields when set

Add a enforce_type method and call it on __set__ to make sure that
the stored value type is consistent.

enforce_type is aliased to from_json for the most basic types
Update tests to test Fields setting in addition to loading
Run enforce_type on the supplied field default