Handle case when insight is run as a plug-in.
Do not use environment class.
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.
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.
Replace loci_tools by bioformats_package
Merge remote-tracking branch 'origin/dev_5_0' into import-fixes-insight
build.xml: Package source archive including submodules
build: Add plainversion
build: Restore creation of broken OMERO.source in release-src

- Correct version to use plainversion.
- Add archive prefix.
build: release-src ensures target exists
build: Create tar source archive as well as zip
omeis: Remove obsolete CVS directory
build: Move git archive creation to components/antlib/scripts/source-archive
build: Embed version as gitversion.xml
build: Embed short version for documentation
build: Restore release-src as release-all dependency
build: build.py sets omero.shortversion
Revert "build: Restore release-src as release-all dependency"

This reverts commit 5b0098333130d3b01eb3aaa081ab188589dfe354.
build: source-archive: Manually flush stdout
build: source-archive: Generalise version filename