OAIHarvest: holding-pen UI bugfixes

* Adds new JS scripts (jQuery UI accordion) in order to fix
  the currently broken UI interface. (closes #1041)

* Changes some functions in getHoldingPenData and adds a new
  function perform_request_gethpall to adopt to the updated UI.

* Adds some new CSS classes.

* Fixes some kwalitee warnings.

Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: discussions compatibility fix

* Reverts counter of discussions for legacy app.  (closes #1422)
WebStyle: non strict handling of last slash in url
WebSession: fix typo in setUid

* Fixes become user feature.  (closes #1424)

Reported-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
inveniocfg: --create-secret-key new line addition

* Appends CFG_SECRET_KEY to invenio-local.conf with new-line.
  (closes #1406)
WebSearch: force integer type of recid
WebAccess: addition of redirections to legacy app

* Fixes problems with patially ported admin interface by adding
  redirections to legacy application.  (fixes #1425)

* TODO reimplementation of resetarea, manageaccounts, delegate_startarea
  and managerobotlogin.

* PEP8 improvements.

Reported-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
importutils: initial release

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
DocExtract: model file move
BibIndex: model *19* addition
WebStyle: autodiscovery of models on app creation
jinja2utils: LangExtension initial commit
WebMessage: fix link on /yourmessages
WebStyle: fix for remote host getter
WebSession: authentication with email address

* Enables local authentication by email.  (addresses #1338)

* TODO migrate LDAP, OAuth and Single Sign On plugins.
WebStyle: database creation in app factory

* Addresses problems of model imports before application context
  is created by wrapping fixtures in closure passed to new
  InvenioFixture class.

* Adapts all relevant test cases.
SQLAlchemy: support for version 0.8.0

* Replaces incompatible mutable attribute by MutableDict.
  (closes #1409)

Reported-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
WebSession: fix for list of admin activities

* Adds a missing if-statement to tmpl_account_adminactivities()
  thus fixing the "Configure BibKnowledge" activity link to be bound
  to the "cfgbibformat" action rather than the "cfgbibknowledge" one.
  (closes #1444)

Reported-by: Sebastian Witowski <sebastian.witowski@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibSched: parse_runtime_limit() fix

* Fixes bug in parse_runtime_limit which would give a limit
  range in the past, when expected returned ranges should always
  either contain the current time or being in the future.
  (closes #1432)

Co-authored-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSession: unit vs regression test suite cleanup

* The current webuser unit tests depends on the installed Atlantis
  Demo site and need therefore be moved into the corresponding
  regression test suite.

Co-authored-by: Tibor Simko <tibor.simko@cern.ch>