workflows: cascading deletion

* NOTE Adds cascading deletion of BibWorkflowObjects and logs when
  deleting a Workflow.

* Takes advantage of the cascading deletes in test tearDown
  functions - removing the unneeded test_teardown() function.

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
base: global index run during demo site population

* Adds missing global indexing process that must be run
  during demo site population.  This is necessary after
  the merge of the virtual index facility from master.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
deposit: fix plupload config usage

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
search: fix jrec handling

* Fixes incorect handling of 'jrec' attribute together with pagination.
  (closes #1756)

Reported-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
search: fix advanced add to search form

* Adds missing class and fixes syntax error in generated javascript
  code.  (closes #1811)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
records: return cleaned record json

* NOTE `get_unique_record_json` returns cleaned data by
  `Record.dumps(clean=True)`.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
utils: function remove_underscore_keys removal

* Removes unused function `remove_underscore_keys`.

* Improves PEP8/257 and adds documentation entry.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
restful: pagination improvements

* Improves the pagination mechanism.

* Adds an errors file in restful needed for pagination.

* Refactors restful pagination tests and ensures they pass.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>