BibAuthorID: add_cname_to_hepname_record()

* Introduces a new API add_cname_to_hepname_record()
  to automatically schedule a BibUpload bibtask to
  append a new person ID to a given record.

* Moves retry_mkstemp() from bibdocfile to shellutils
  so that other modules can use it.

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
BibAuthorID: hepnames match

* Uses newly introduced add_cname_to_hepname_record()
  API for catalogers to confirm a profile matches
  a given record.

Reviewed-by: Samuele Kaplun <samuele.kaplun@cern.ch>
installation: update to MathJax-2.3
WebSearch: fix sorting options

  * Adds the condition 'len(sort_field) > 1' to the condition
    'str(sort_field[0:2]).isdigit()' when the sort field
    argument seems to be a MARC tag. (closes #801)
WebSearch: search API changes for record sorting

* Changes the behavior perform_request_search() API function in case of=id
  perform_request_search always defaults to sorting in ascending order.
* Changes the search webinterface. All results are ranked by descending order
  by default. In particular, this changes the behavior of of=id from the
  webinterface and results for of=id and now ranked in descending order
  instead of ascending order by default (closes #1657)
* Changes the API of bibrank. Now results ranked in ascending order are really
  in ascending order.
WebSearch: changes citation tab count
inveniocfg: do not capture warning in unit tests

* inveniocfg_upgrader does as a special treatment
  in order to capture warnings and store them in log
  files. However this behavior confuses certain
  external modules, such as the xunit plugin in
  nosetest. Therefore capturing warning is disabled
  during unit tests execution.
dateutils: adds __add__ to our custom datetime

* Allows to use += or + with our custom datetime object without loosing it.
WebAlert: update tests for newly introduced records
WebAccess: fixes user details page links
BibRank: handle missing files when removing graphs

* Handle the file does not exist exceptions when try get the st_mtime
  of a graph file.
RefExtract: only accpet digits as numeration

* Forces digits to be [0-9] instead of all the valid unicode numeration.
  This prevents the value error when trying to convert nummeration to int.
DocExtract: improves bibrecord

* Adds find_subfields and few other convenience functions to the new bibrecord.
* Adds unit tests
BibEdit: Holding Pen fix

*  record_order_subfields was called for the HP but in a case not
   for the record that is returned to the gRecord. So the subfields were
   not sorted and as a result the comparing algorithm returned wrong
   results in some cases.

*  The fields of a tag of gRecord are not sorted alphabetically,
   but before applying the comparison algorithm on client side the
   records' fields were sorted, resulting to conflicts in some
   cases. Removed the sorting part from client side.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibCheck: adds --config option

* Allows to specify a different config file (default is rules.cfg)

* Creates example rules file (example_rules.cfg)
BibAuthorID: Claiming page is now reloaded after commit.

* Fixes wrong behaviour where the page was not reloaded hence not
  showing the results of actions.
BibCheck: improve url plugin

* Deal with exceptions from requests library

* Avoid querying CFG_SITE_URL and CFG_SITE_SECURE_URL
BibMatch: Fix validator problem

* Fixes a problem in the validator while retrieving values from
  records that could cause an empty string to be evaluated as
  a real value.

Reported-by: Raja Sripada <rsripada@cern.ch>
BibDocFile: no access to filesystem

* Does no longer access filesystem when what
  is required is only to initialize a BibDoc
  and CFG_BIBDOCFILE_ENABLE_BIBDOCFSINFO_CACHE
  is used.
BibCheck: improve url plugin and tasklet

* Adds more exception handling to bibcheck url plugin.

* Improves messages provided by bibcheck daemon.