Refactored webapi.py's success and error responses to use flask.json.jsonify instead of importing bson.json_utils.