deposit: ckeditor sanity check

* Avoid error if deposit form is not using ckeditor in any field.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: for loop rewrite to $.each

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Reported-by: Yoan Blanc <yoan.blanc@cern.ch>
tags: REST API addition

* Creates API for tags, in order to have a reusable API
  both for restful API and views probably.

* Refactors tags REST API in order to use the new tag API.

* Tests the tags REST API.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
documents: files field rename

* Renames `_files` and `files` to `_documents` and `documents` to avoid
  name collisions with current bibupload fields. (closes #1898)

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
records: fix `get_blob` to ease transition.

* With the new uploader there is a new column inside `bibfmt` to allow
  different kind of versions of the record: `master`, `DIP`, etc. but
  bibupload is not filling this column, only `format='xm'` to identify
  the master version for `marcxml`.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
grunt: jquery.form from bower

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
BibDocFile: javascript fixes

* Preloads jquery.form via a dummy require.js script.

* Addresses #1900.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
Reported-by: Petr Broz <petr.broz@gmail.com>
Tested-by: Petr Broz <petr.broz@gmail.com>