BibField: creation date addition and keyword fix

* Adds new derived field 'creation_date'.

* Fixes keywords defition to always return list.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'master' into next

* master:
  BibField: creation date addition and keyword fix

* Merge note: amended get_creation_date to use SQLAlchemy.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
inveniomanage: command signal addition

* Adds new general `pre_command` and `post_command` signals.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
inveniomanage: demosite create/populate/drop

* Moves commands from `database_manager` to `demosite_manager`.
  (closes #1534)

* Introduces `scriptutils` for various decorators and `Manager`
  modifications.

* Improves `change_command_name` decorator for replacing '_' by '-' or
  setting up desired command name.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
installation: `apache create-config` renaming

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
signalutils: new record creation and modification signals

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
testutils: login and logout in InvenioTestCase

* Moves methods `login` and `logout` to `InvenioTestCase`.

* One can use `self.login('romeo', 'r123omeo')` inside tests
  instead of manually filling and posting the form.

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

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: video collection fixture fix

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
SQLAlchemy: use_unicode=False by default

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
SQLAlchemy: fix MarshalBinary impl type

* Addresses problem with saving `User.settings` BINARY column that was
  truncated upon commit. `User.settings` uses LargeBinary type since now.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
jinja2utils: new filters addition

* Adds filters `prefix`, `suffix` and `wrap` for decorating strings.

* Adds filter `sentences` that prints fisrt `n` sentences.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: blueprints refactoring and cleanup

* Improves search results rendering using BibFormat `print_records`.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: browse functionality initial port

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibFormat: initial port of HB format templates

* Improves style of HTML brief templates using Jinja2 and Twitter
  Bootstrap.  (addresses #911)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: collection view improvement

* Uses jinja template for printing brief links.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibFormat: second version of HB templates

* Improves style of HTML brief templates using Jinja2 and Twitter
  Bootstrap.  (addresses #911)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibFormat: removal of bfe_* function calls

* Displays icon before report number.  (addresses #911)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebComment: code style improvements

* Connects signal record after update with BibField.

* Improves blueprint and fixes regression tests.

* FIXME access to comments in restricted collection

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
inveniocfg: fix for `--reset-recjson-cache`

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>