assets: resolution of jquery to ~1.11

* Changes the jquery resolution to ~1.11 instead of <2 since it would
  pick jquery 1.7.2 as required by jquery.treeview. It solves the
  problem of jquery not being found at:
  `vendors/jquery/dist/jquery.js`

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
deposit: base version of form.html template

* Creates form_base.html to make possible ovewriting html blocks in
  an overlay.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
base: jquery-form loaded via require.js

* Changes the filters on the jquery bundle to be require.js so it can
  properly load library such as jquery-form.

* Renames legacy.js to init.js to match the naming choosen for search
  and deposit scripts.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
installation: Flask-Admin>1.0.8,<1.1

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
installation: postgresql driver dependency

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
sqlalchemy: name addition for Enum types

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
ranker: fix missing column in RnkCITATIONDICT

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
general: escape user and format table names

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
REMOVE ME
WIP test_db_connection
sqlalchemy: postgresql types support
legacy: support for postresql engine in dbquery

* Adds dynamic loading of legacy SQL functions for different database
  engines.  (addresses #2020)