updating request handler to handle all json requests
updating request handler to handle all json requests
before_request should just raise the error
better error message for missing data
combine validate_json_type with  validate_with_model for #51
removing old json_from_request for #52
g.error should default to None
simplified internal setup
adding tests for validate_with_model for #52