base: modal binding elements filter addition

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
comments: notes and PDF preview features

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
comments: HTML and JS fixes

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
comments: PDF preview page in URL hash

* Synchronizes the currently previewed PDF page with the window.location.hash;

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
comments: better base JS inclusion separation

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
comments: PDF page preservation on form submission

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
comments: notes reply-to-original-comments tweak

* Inserts a marker for the currently previewed page when replying to the
original comment.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
annotation: first commit

* Adds front- and back-end skeletons;

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
annotation: JSON models

* Uses JSONAlchemy and MongoDB.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
annotation: functioning add/ view actions

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
annotation: additions and fixes

* JSONAlchemy namespace;
* AJAX form submission;
* Tweaks annotations menu tabs;
* Requires login for adding annotations;
* Uses Invenio global configuration.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
annotation: file attachments and other fixes

* Attach file form with backend skeleton;
* Explicit creation date JSON field;
* Simple public/ private view permissions;
* "Contextified" Jinja2 macros.

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