search: typeahead js code style improvements

* Affects search/typeahead.js and search/search_parser.js

* Fixes warnings produced by jshint.

* Breakes too long lines.

* Removes unused variables.

* Updates comments.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: requirejs for search typeahead

* Modifies search/search_parser.js, and search/typeahead.js to be
  compatible with requirejs.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
deposit: usage of requirejs for typeahead

* Makes form.js using twitter typeahead through a requirejs
  dependency.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
base: removal of typeahead.js from bundles

* Removes twitter's typeahead.js from bundles as it is only used with
  requirejs now.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix of undefined query_range in typeahead

* Initializes query_range in the constructor.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix for improper suggestions merging

* Synchronizes internal twitter's typeahead query variable on query
  change.

* Deletes reseting query value to the complete input field value in
  special cases.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix for stucked focus on the search field

* Prevents setting the caret position by typeahead on blur event.
  Changing the caret position in this situation is not needed, and
  causes the field to focus back.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
base: new `demosite populate` force-recids option

* Adds new extra option `-e force-recids` to the `demosite populate`
  command.  Useful to load files with wanted pre-set record IDs.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
docs: fix links in overlay.rst

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
session: fix duplicate session commit

* Removes duplicate code that has been moved to model.
  (PR #2264)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
session: fix commit after automatic table creation

* Fixes `commit()` call on database session object.  (PR #2265)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
OAIHarvest: workflows in admin

* Adds the workflows colomn in the legacy admin interface.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: initial upgrade

* Adds initial upgrade script from Invenio v1.x for oaiharvester module.

* Updates the workflows column with default and `NOT NULL`.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: workflows integration

* NOTE Adds default workflows and tasks for OAI harvesting which
  is now required to run OAI harvest. A working Celery worker is
  necessary to run harvests.

* NOTE Moves harvesting specific tasks, tests and workflows from
  workflows module to oaiharvester module. If you have used any of
  these tasks or workflows in your workflow configuration you need
  to amend your imports.

* Adds warnings and help messages on OAI Admin display.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>