indexer: auto-generation of models

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
records: auto-generation of models

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
knowledge: REST API addition

* Implements a first prototype of REST API to deprecate
  old kb export. (addresses #2570)

* Adds a testsuite for REST API

* Deprecates some duplicate methods in the models.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
authors: base record

* Defines fields and models for author base record.

* Adds new function for jsonalchemy models definitions.

* Includes tests for author base record.

Signed-off-by: Mateusz Susik <mateusz.susik@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>