Close files earlier during full text indexing

This patch introduces a new type of message custom tailored to be caught
during each iteration of full text file indexing. This will allow us to
close these files at the close of each iteration, instead of waiting for
an entire batch of work to finish.
handle.close() in try/finally
Merge pull request #2053 from jburel/rnd-copy-paste-dev_5_0

Rnd copy paste dev 5 0
removing unused code
replacing search block by django form
fixing searching query
Move ParserSession internal to FullTextIndexer

Since there's nothing to configure for the ParserSession, we may as well
let the FullTextIndexer create a new one in its own constructor. This
*could* pose problems if more than one FullTextIndexer is running at a
time (as one ParserSession could close resources used by a different
FullTextIndexer), but currently the locking in FullTextThread precludes
this possibility.
Merge pull request #2052 from aleksandra-tarkowska/rebased/dev_5_0/maximize_big_image

Maximize big image (rebased onto dev_5_0)
De-personalise some todo comments.
callback.close(True)
merge dev_5_0 -D org -I include -E exclude: PR 2034 (fixing UnicodeEncodeError when searching, close #11941 (rebased onto dev_5_0))
merge dev_5_0 -D org -I include -E exclude: PR 2041 (dev_5_0: Add omero config append/remove subcommands with default value handling for omero.web.* variables)
merge dev_5_0 -D org -I include -E exclude: PR 2043 (Various import and logging fixes)
merge dev_5_0 -D org -I include -E exclude: PR 2047 (Delete examples 11930)
merge dev_5_0 -D org -I include -E exclude: PR 2054 (Admin user.)
merge dev_5_0 -D org -I include -E exclude: PR 2058 (Update dev_5_0 submodules)
merge dev_5_0 -D org -I include -E exclude: PR 2059 (Close parsed files after each indexing iteration  (fixes #11949))
merge dev_5_0 -D org -I include -E exclude

Repository: openmicroscopy/openmicroscopy
Already up-to-date.

Merged PRs:
  # PR 2034 aleksandra-tarkowska 'fixing UnicodeEncodeError when searching, close #11941 (rebased onto dev_5_0)'
  # PR 2041 knabar 'dev_5_0: Add omero config append/remove subcommands with default value handling for omero.web.* variables'
  # PR 2043 ximenesuk 'Various import and logging fixes'
  # PR 2047 will-moore 'Delete examples 11930'
  # PR 2054 jburel 'Admin user.'
  # PR 2058 snoopycrimecop 'Update dev_5_0 submodules'
  # PR 2059 jballanc 'Close parsed files after each indexing iteration  (fixes #11949)'
Conflicting PRs (not included):
  # PR 2055 mtbc 'fix #11877: move import logs to upload jobs instead of annotations'

Repository: openmicroscopy/bioformats
Updating 92e346e..4390f4a
Merged PRs (fast-forward):
  # PR 874 melissalinkert 'SDT: read each data block into a separate series (rebased onto dev_5_0)'

Merged PRs:
  # PR 856 melissalinkert 'Initial version of bfCheckJavaMemory'
  # PR 882 melissalinkert 'Create bioformats_package.jar'

Repository: ome/scripts
Already up-to-date.

Repository: openmicroscopy/ome-documentation
Already up-to-date.

Merged PRs:
  # PR 640 ximenesuk 'Update docs for import and logging fixes'
  # PR 646 sbesson 'Improve server-template description in advanced configuration'

Generated by OMERO-5.0-merge-daily#565 (http://ci.openmicroscopy.org/job/OMERO-5.0-merge-daily/565/)