Websearch: SPIRES to Invenio keyword translation

* Edits _SPIRES_TO_INVENIO_KEYWORDS_MATCHINGS and
  _INVENIO_KEYWORDS_FOR_SPIRES_PHRASE_SEARCHES in
  search_engine_parser.py

* Adds unit tests for the new mappings

* Adds new 'address' field and relative tag mapping (in tabfill and
  with a new upgrade script)

* Adds new 'note' field and relative tag mapping (in tabfill and with
  a new upgrade script)

Signed-off-by: Federico Poli <federico.poli@cern.ch>
Merge pull request #35 from fpoli/prod-websearch-spires-to-invenio

Websearch: SPIRES to Invenio keyword translation
BibIndex: new `datasource` field and `786__w` tag

* Adds field `datasource`, associated with the new tag `786__w`

* Adds upgrade script

* Adds bibfield definition of `datasource` in `atlantis.cfg`

Signed-off-by: Federico Poli <federico.poli@cern.ch>
BibIndex: pep8 fix

* Runs `autopep8` on bibindex files

* Updates copyright year

Signed-off-by: Federico Poli <federico.poli@cern.ch>
BibIndex: refactoring and author parent tokenizer

* Refactoring of BibIndex:
  implements https://github.com/inveniosoftware/invenio/issues/1710

* Adds a generic parent tokenizer, useful for the dataset records:
  implements https://github.com/inveniosoftware/invenio/issues/1885

* Adds 4 demo records for testing purpose

* Adds (and fixes) tests

More details:

* Refactoring of `task_run_core` in `bibindex_engine.py`: easier to
  follow, moves the decision of which records need to be reindexed to
  the tokenizers

* Fixes bug: the command `bibindex -w [index name] -m [date range]`
  previously was updating the `last_updated` field of the index

* Moves many of the index specific special cases from
  `bibindex_engine.py` to the tokenizers
  (e.g. `if index_name == "author": # add special tokens`)

* Moves some utility functions from `bibindex_engine.py` to
  `bibindex_engine_utils.py`

* Adds tokenizers `BibIndexAbstractParentTokenizer`,
  `BibIndexCanonicalAuthorTokenizer`,
  `BibIndexExactParentAuthorTokenizer`,
  `BibIndexParentAuthorTokenizer`,
  `BibIndexParentCanonicalAuthorTokenizer`

* Adds indexes `simpleauthor`, `canonicalauthor`, `parentauthor`,
  `parentcanonicalauthor`, `exactsimpleauthor`, `exactparentauthor`

* Adds fields `simpleauthor`, `exactsimpleauthor`

* Adds upgrade script for the database changes
  (uses function upgrade_atlantis)

* Transforms `author` and `exactauthor` indexes from regular to
  virtual index

* Adds file `bibindex_engine_tokenizer_regression_tests.py`

* Adds tests for tokenizers, for bibindex CLI, for bibindex utils

* Closes https://github.com/inveniosoftware/invenio/issues/1662
  (BibIndex: --reindex should not zero last_updated)

* Edits the commands run by `--load-demo-records` in order to
  reindex the bibauthorid-dependant indexes after the `bibauthorid`
  task (for example `canonicalauthor` and `parentcanonicalauthor`)

Signed-off-by: Federico Poli <federico.poli@cern.ch>