knowledge: REST API addition

* Implements a first prototype of Rest API to deprecate
  old kb export. (addresses #2570)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
you can add `PendingDeprecationWarning` but do not remove them yet