WIP records: REST API addition

```python
 if mimetype == 'application/json':
     response = jsonify(json.loads(result))
else:
     response = make_response(result)

response.headers['Content-Type'] = content_type
return response
```

Can't above be rewritten to:

```python
return (result, 200, {'Content-Type': content_type})
```