base: fix static files serving from DocumentRoot

* Implements Nginx's "try_files" like functionality using custom wsgi
  middleware for Apache and WSGIScriptAlias for invenio.wsgi together
  with mod_rewrite.

* NOTE regenerate your apache configuration by running
  `inveniomanage apache create-config`.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Tested-by: Yoan Blanc <yoan.blanc@cern.ch>
base: wsgi middlewares reorganization

* Fixing DebbugedApplication middleware usage.

* Using an Apache environment variable to detect when to apply
  the WSGIScriptAliasFix: `WSGI_SCRIPT_ALIAS` pointing to the
  script name.

* NOTE regenerate your apache configuration by running:
  `inveniomanage apache create-config`

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
Reviewed-by:  Jiří Kunčar <jiri.kuncar@cern.ch>
deposit: WTForms version to be <2.0

* Fixing WTForms to <2.0 as Flask-WTF doesn't support it yet.

* Updating Flask-WTF to 0.9.5.

* Updating WTForms-Alchemy to 0.12.4.

* Fixing the build where _unset_value was not found.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
search: collection template loading

* Supports collection specific templates by id "collection_{id}.html"
  with fallback to the "collection_{name}.html" and "collection.html".

Signed-off-by: Charalampos Tzovanakis <drjova@cern.ch>
workflows: initial user UI integration

* Kickstarts the user UI integration of Holding Pen by adding
  a new menu item "Your Pending Actions" to the user UI and new
  settings pages.

* Refactors the initial index page of Holding Pen to more nicely show
  pending actions and button to take users to the Holding Pen.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: definition fetching improvements

* Improves the procedure of getting workflow definition objects
  to be compatible with older workflows that may not exist
  anymore and at the same time be more forgiving.

* Fixes some documentation typos.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: widget to action name change

* NOTE Changes the naming of Holding Pen "widgets" to "actions" to
  more clearly distinguish these UI elements from widgets elsewhere
  in Invenio. The name "action" better suits these types of components
  which is representing an action that needs to be taken by operators.

* Renames several files to make use of this new naming strategy.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: user session in Holding Pen

* Fixes the way the Holding Pen is storing info about the
  current session by actually using the user session and not
  editing the current_app.config.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: PEP257 improvements

* Improves docstrings in holdingpen.py and some other places to
  conform with PEP257.

* Adds a deprecation warning for new action to widget naming.

Reported-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: INSPIRE specific removal

* Removes INSPIRE specific tasks and parameters from the
  default workflows. This will rather be part of INSPIRE
  overlay.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: fix harvesting workflow with bibsched

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
sso: fix group/groups key inconsistency

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
access: fix edge cases of user info usage

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

* Replaces undefined bfe_primary_report_number
  function with record.get()

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
formatter: bfe_primary_report_number replaced

* Replaces undefined bfe_primary_report_number
  function with record.get()

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
access: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
annotations:  jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
comments: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
communities: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
deposit: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>