restful: API testcase fixes

* Fixes issue with class variable in API test case.

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

* Adds test cases for restful decorators.

* Adds documentation on issues with decorators being called with
  both bound and unbound methods when used from Flask-Restful
  method_decorators attribute (bound) vs normally applied
  decorator (via @ on class method).

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

* Fixes issue where edited records would be rejected by bibupload's
  revision verifier because the modification date in bibrec (used
  by records module) is not the same as hstRECORD (used by revision
  verifier).

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
oauthclient: github/orcid sign-in/up support

* Adds support for GitHub and ORCID sign-in/up.

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

* Adds registry for OAuth 2.0 scopes.

* Adds support for selecting scopes when creating personal access
  tokens.

* Fixes scopes registration in deposit and webhooks modules according to
  new registry.

* NOTE The scopes registry will be refactored in the future depending on
  the outcome RFC #1773.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
oauth2server: authorization flow bug fixes

* Adds redirect URI field to application form.

* Adds validation and setters of redirect uris on model.

* Fixes issue in auth flow when validating scopes.

* Fixes template and context issues in 'Authorize application' view.

* Disables https redirect uri checking when in debug mode.

* Properly handle errors happening during authorize requests.

* Adds test cases for authorization_code, client_crendentials,
  refresh_token and implicit grant types.

* Adds endpoint documentation in user interface.

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

* Fixes undefined variable when using API keys as authentication.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
formatter: test engine xslt format addition

* Adds test for xslt format engine.  (closes #2048)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
global: Invenio 1.9999.3.dev

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
mixer: new extension that uses Mixer library

* If the extension is enabled it will connect to database create and
  recreated commands so it can loads all the json files into the
  database.

* NOTE if this extension is enabled fixtures should not be
  used as probably there will be some database inconsistencies.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
fixtures: port to extension with signals usage

* NOTE `inveniomanage demosite create` is obsolete. All actions are
  executed during `{post,pre}_command` signal handlers.

Co-authored-by: Esteban J. G. Gabancho <esteban.gabancho@cern.ch>
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
access: removal of site specific configuration

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
search: ids removal from format fixtures

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
deposit: independent jquery-ui modules

* Loads jQuery UI modules individually.

* Removes jQuery UI bundle from deposit module.

* Fixes jQuery datepicker module issue.

* Removes globaly exposed functions and refactors the javascript
  structure.

Signed-off-by: Charalampos Tzovanakis <drjova@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
assets: jquery-ui bundle removal

* NOTE For now on jQuery UI plugins should be loaded using
  `require('ui/{name}')`.

Signed-off-by: Charalampos Tzovanakis <drjova@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
upgrader: documentation fix

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibSched: fix monitor

* Fixes problems with monitor after master merge, such as
  missing config variable CFG_BIBSCHED_NON_CONCURRENT_TASKS default
  value, datetime calls and Task object lookups.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
base: CFG_RUNDIR addition

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibSched: fix usage of CFG_RUNDIR config variable

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
legacy: fix for static file handler

* Addresses issue with empty filename in legacy static file handler.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>