Added tests of decode_json_body(), handle_type_error() and json_to_params().
Fixed bugs found by tests. Added optional parameter to json_to_params().
Fixed bugs in documentation, also added some updates.
Optional return_json parameters added to json_to_data() and form_to_params().
Added tests for json_to_data() and form_to_params().