mailutils: fix for double mail sending issue

* Addresses problem with double send emails.  (addresses #1598)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSession: fix for login referer redirection

* Addes blacklist of links which should not be followed after login.
  (closes #1598)

Signed-off-by: Adrian Tudor Panescu <adrian.tudor.panescu@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: fix for cache timestamp file handling

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibFormat: port back-to-search links

 * Revives links displayed on the detailed
   view of a record to let users flip quickly
   between detailed record pages.

Conflicts:
	modules/bibformat/etc/templates/format_templates/Default_HTML_detailed.tpl
	modules/webstyle/css/invenio.css
WebSearch: jinja template for back-to-search links

 * Moves html output related to back-to-search links
   to a separate jinja template named
   "record_back_to_search_links.html".

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

Conflicts:
	modules/bibformat/etc/templates/format_templates/Default_HTML_detailed.tpl
	modules/websearch/etc/templates/Makefile.am
WebSearch: back-to-search links improvements

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibFormat: get fulltext snippets docstring fix

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebStyle: fix blueprint loading refactoring issue

* Fixes an issue introduced during refactoring from pluginutils to
  importutils loading of blueprints.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
WebSession: email form validation addition

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
urlutils: fix for wrong URL arguments encoding

* Fixes issue with URLs being escaped twice.

* TODO usage of `make_canonical_urlargd` needs to be checked.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebStyle: debug-toolbar display condition fix

* The Flask debug-toolbar is shown iff it is added in CFG_DEVEL_TOOLS and
  CFG_DEVEL_SITE == 9 (shown to ALL users), or the current user is super
  admin (regardless of CFG_DEVEL_SITE).

Signed-off-by: Adrian Tudor Panescu <adrian.tudor.panescu@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>