indexer: changes in data model

* Changes 'term' field inside IdxPHRASExxF classes
  from String to Text.

Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
general: fixes for javascript loading

* Addresses problems with Flask-Debugtoolbar and tabs on `/record`
  pages.

Co-authored-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
restful: inital release

* Adds Flask-Restful initialization.

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
deposit: improvements for new code structure

* Adds restful API for depostions.

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>