BibIndex: use human friendly index name

* Adds a more administrator friendly progress display when
  running a BibIndex task in BibSched as it prints the index name
  in addition to the more cryptic index tablename.
  (addresses #1329)

* The same progress display now also tries to give an estimate
  of completed work in percentage.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: use PyPDF2 if available

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibSched: increases size of monitor columns

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebApiKey: renames unit tests to regression tests

* The tests were modifying the database thus have been renamed.
  (closes #1324)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: SPIRES date math search fixes

* Fixes treatment of the first day of the month in SPIRES date queries
  like "find date 1976-04-01 and t dog".  (closes #431)

* Fixes "this week" and "last week" date search functionality.

* Accepts two digits for year search so that users can type 78 instead
  of 1978.  (closes #948)

Reviewed-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: SPIRES invalid date search fix

* Accepts invalid dates without erroring.  (closes #1467)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
installation: fix for MathJax OS X install issue

* MathJax library was copied with cp -ur, however the -u option is not
  supported on OS X.  (closes #1455)

Reviewed-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebAccess: fix variable parsing in robot auth

* Fixes an issue where a variable was wrongly assumed to always contain
  a string even though it could also contain integers.  (closes #1456)

Reviewed-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: handles "find feb 12"

* Converts SPIRES syntax "find feb 12" to "year:2012-02".
  (closes #948)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: tweaks SPIRES two-digit search

* Instead of having a window ending at the current year
  e.g. for 2012: 1913 -> 2012
  the new two-digit year window is 10 years ahead:
  e.g. for 2012: 1923 -> 2022
  This permits to search for near future dates.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.1'

* maint-1.1:
  WebSearch: tweaks SPIRES two-digit search
  WebSearch: handles "find feb 12"
  WebAccess: fix variable parsing in robot auth
  installation: fix for MathJax OS X install issue
  WebSearch: SPIRES invalid date search fix
  WebSearch: SPIRES date math search fixes
  WebApiKey: renames unit tests to regression tests
  BibSched: increases size of monitor columns
  WebSubmit: use PyPDF2 if available
  BibIndex: use human friendly index name

Conflicts:
	modules/bibindex/lib/bibindex_engine.py
	modules/websearch/lib/websearch_regression_tests.py
Merge branch 'master' into next

* master:
  WebSearch: tweaks SPIRES two-digit search
  WebSearch: handles "find feb 12"
  WebAccess: fix variable parsing in robot auth
  installation: fix for MathJax OS X install issue
  WebSearch: SPIRES invalid date search fix
  WebSearch: SPIRES date math search fixes
  WebApiKey: renames unit tests to regression tests
  BibSched: increases size of monitor columns
  WebSubmit: use PyPDF2 if available
  BibIndex: use human friendly index name
dateutils: strptime for Python-2.4 compatibility

* Introduces a compatibility function called strptime which is
  equivalent to datetime.strptime so that it would work for
  both Python 2.4 and higher versions.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.1'

* maint-1.1:
  dateutils: strptime for Python-2.4 compatibility
Merge branch 'master' into next

* master:
  dateutils: strptime for Python-2.4 compatibility
jinja2utils: application template filters

* Moves loading of Jinja2 filters from application factory to
  jinja2utils for better readablity.

Co-authored-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebStyle: fix Jinja2 context

* Fixes problems with loading Jinja2 context when using Flask global
  proxy variable (`g.*`).

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebAccess: fix firerole uid test

* Fixes issue when checking firerole for guest user with uid == 0
  instead of -1.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSession: fix guest user uid in current_user

* Fixes issue with current_user uid introduced in b21c9d7 that prevented
  user to see record files as guest user.

Reported-by: Raquel Jimenez Encinar <raquel.jimenez.encinar@cern.ch>
Reported-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
messages: fix unit test imports

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