oauthclient: authorize url fix

* Changes authorize url to redirect to login form instead of register.
  (closes #2487)

* Moves imports inside functions.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: template naming fix

* Removes the hp prefix from holdingpen templates.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
jsonalchemy: validation fixes

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
uploader: typos fixes

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
records: better PID list

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
uploader: files to link addition

* Adds new option for linking files with record via custom FFL MARC
  field.

* Adds `legacy` step to uploader insert worflow for filling-up "bibxxx"
  tables.  (addresses #1772)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
previewer: addition of support for Documents

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
uploader: support for relative document paths

* Allows specifying relative paths in FFT tags.  (closes #1191)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
setup: WTForms pin version 1.0.5

* NOTE Invenio installation is currently broken. Flask-Admin does
  not support WTForms>2.0.0. This is a temporary commit until it is
  fixed.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
knowledge: API migration to SQLAlchemy

* Replaces run_sql queries with SQLAchemy query.

* Refactors module in order to move logic from api to model.

* Fixes bibknowledge webinterface kb mapping update.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>