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
travis: initial configuration release
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>
BibFormat: skipping BFOs with only XSL stylesheets

* Improves `inveniomanage bibformat bft2tpl` hence if some output formats
  do not need to be convereted then they are skipped.  (closes #1470)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
installation: initial apache manager release

* DEPRECATED: `inveniocfg --create-apache-conf` will be removed and
  currently it uses `inveniomanage apache create_conf`.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
installation: fix database commands create & drop

* Adds information progress of database creation and drop.
  (addresses #1283)

* Fixes problems with imports in models and blueprints.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
installation: inveniocfg create/drop db depretated

* Warns user to use `inveniomanage database {create, drop}` instead of
 `inveniocfg --drop-tables --create-tables`.  (closes #1283)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
SQLAlchemy: MarshalBinary and import fixes

* Fixes issues with database models import.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: temporary move js script on top

* Addresses problems with legacy bibformat elements that include
  javascript libraries dependent on JQuery. In order to avoid this
  problem it is recomended to run `inveniomanage bibformat bft2tpl` and
  replace all <script src="..."> tags with {% js '...' %}. Eventually
  move all javascript code in script blocks to individual files to
  enable script bundling in assets.

* FIXME remove this commit when all bibformat templates and elements are
  ported and using {% js ... %}.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: faceted results order fix

* Quickly fixes order of faceted search results.  (addresses #1352)

* Improves speed of loading websearch blueprint by moving facet plugins
  discovery to before_first_app_request handler.

* TODO improve perform_request_search to return intbitset with results
  and eventually raise exception when nothing is found with near search
  terms.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: url `of` argument quickfix

* Addresses issue with badly generated nearest term links pointing wrong
  output format type.  (addresses #1473)

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