comments: reviews_base.html template

* Moves reviews.html to reviews_base.html. Note that this commit is broken.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
comments: reviews.html template

* Re-adds reviews.html template extending from reviews_base.html. Fixes broken
parent move commit.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
previews: move to previewer

* Renames the previews module to previewer. Note that this commit is broken.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
previewer: post-move fixes

* Fixes issues generated by module renaming.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
previewer: refactoring

* Changes preview view function arguments, passes request arguments.

* Sends only file reference from view to plugins.

* Fixes PEP8.

* Adds previewer preference order, settable via CFG_PREVIEW_PREFERENCE, which
is a dictionary such as {'.pdf' : ['pdftk', 'gview']}, specifying that 'pdftk'
it the first choice for PDFs.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
utils: unicode fix

* Accepts unicode as well as strings for escape_shell_arg().

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
static: modal binding element filter addition

* Adds an optional jQuery filter parameter to the modal binding function; this
is useful, for example, when binding after an AJAX request for skipping already
bound elements.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
requirements: pymongo addition

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
utils: which function addition

* Adds a which function, similar to GNU which. For CPython 3.3+, this is already
included in shutil.py. For older versions it was backported.

* Fixes configuration variables that point to executable paths to use which.

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
base: sticky footer fix

* Fixes sticky page footer by re-adding CSS code removed from page_base.html.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
config: pdfopt workaround

* Adds a workaround for missing pdfopt in Ghostscript 9.0.7+, as suggested at:
http://invenio-software.org/ticket/1560
See also: http://invenio-software.org/ticket/1561

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
travis: enabling excluded packages for test

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
base: fix for long language list

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