make templates aware of g.error
rename validate_json -> validate_json_type
fixing tests for #85
fixing docs for #85
updating endpoint setup for #85