travis: nose and regression test addition

* Adds nose installation.

* Adds webmessage regression test.

* Adds database demosite command
WebSearch: support for 'x*' search output format

* Ports behaviour for formating search results using output formats
  starting with 'x*'.  (addresses #1508)

* TODO refactor code to remove duplications in the websearch blueprint.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: fix facet unicode value problem

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebDeposit: checking existence of CKEditor in js

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebMessage: fix reply on message

* Fixes broken links and page rendering when replying a message.

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibField: manager port initial release

* Replaces `inveniocfg` options `--load-bibfield-conf` and
  `--reset-recjson-cache` by new `inveniomanage bibfield` manager:
  `config load` and `reset`.

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

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
inveniomanage: version command addition

* DEPRECATED `inveniocfg --version`

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
inveniomanage: `apache version` command addition

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

* Adds command `database version`.

* Ports commands for printing database and system information.

* Adds commands `database driver` and `detect-system-details` for
  printing usefull debugging information about database and system.

* Ports `config create secret-key` from `inveniocfg --create-secret-key`

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibFormat: bfe elements loader inside engine

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebMessage: fix regression tests

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSession: external authentication port to Flask

* Improvements of `invenio_wash_urlarg` decorator.

* New twitter-bootstraped login page with alternative authentication
  providers.  (closes #1338)

* TODO port function `webuser.loginUser(...)` to SQLAlchemy
WebSession: user registration initial Flask port

* Ports user registration view to Flask but moving register view from
  websession_webinterface to webaccount_blueprint and creating a new
  WTForm form with validation logic for user registration.

* Fixes issue with vertical aligment of icon legend.

* Fixes issue in webuser when dealing with Flask generated legacy
  requests instead of proper legacy requests.

* FIXME Unauthorized access page is not ported.

Co-authored: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSession: fix empty password registrations.

* Disallow empty password registrations.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
DocExtract: invalid form values handling fix

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibFormat: bibfield record addition to tpl ctx

* Adds variable `record` to all `*.tpl` jinja templates used for
  formating records (e.g. "<h1>{{ record.title}}</h1>").

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
dbdump: flaskshell import addition in dbdump.in

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
installation: demosite fixtures addition

* Introduces new command `inveniomanage database demosite` to populate
  demosite from fixtures.

* NOTE `inveiniocfg --create-demo-site` is still using sql data for
  testing purposes.

* DEPRECATED `democfgdata.sql` in flavor of `*_fixtures_demosite.py`

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