records: REST API addition

* Adds REST API for records.

* Sets `clean=True` in legacy search_engine to clean the
  recjson to be returned.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
records: rest api fixes

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>