WebSearch: better cleaning of word patterns

* Cleans word patterns of any trailing punctuation signs if they are
  followed by at least one space.  This is done for better consistency
  with what the indexer component does.

Reported-by: Alexander Wagner <a.wagner@fz-juelich.de>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibDocFile: allow doctype renaming

* Implements the doctype renaming for a BibDoc.

* Fixes bibdocfile CLI action `--set-doctype`.  (closes #980)

Co-authored-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibDocFile: implements format renaming

* Adds support in BibDoc for format renaming if the new format
  does not already exist among the latest files.  (closes #1318)

Tested-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.1'

* maint-1.1:
  WebSearch: better cleaning of word patterns

Conflicts:
	modules/websearch/lib/search_engine.py