WIP records: REST API addition

Ok. Try to debug it with ipdb to figure out why your header is being overwritten. The reasons is that it's best if all content types can be treated equally so we don't have special cases. I assume it's either in ``flask.app.Flask.make_response`` or ``flask.wrappers.Request`` you'll find the reason.