Add `--auto_close` option
5.0.x: use a structured annotation for auto-close
5.0.x: add public handle field
Better error handling
auto-close integration test
Merge pull request #2774 from aleksandra-tarkowska/rebased/dev_5_0/session_engine_clean_out

clear sessions (rebased onto dev_5_0)
Moved Lucene query generation to the server
preventing from clicking Accept without choosing file annotation
Changed lucene query output to log info instead of debug
Move NSAUTOCLOSE detection earlier

During cleanup, the transaction has already exited and
therefore there's no way to properly query some types
of annotation (e.g. those which are unloaded). Instead,
we check earlier for the appropriate annotation and only
re-act during autoClose().

Note: throwing exceptiongs from `getResponse()` is a *bad*
      idea.
merge dev_5_0 -D org: PR 2242 (Use mklink under Windows)
merge dev_5_0 -D org: PR 2596 (Groups users menu 12082)
merge dev_5_0 -D org: PR 2615 (Sphinx api improvements)
merge dev_5_0 -D org: PR 2667 (Add a quiet option to CLI commands)
merge dev_5_0 -D org: PR 2676 (Overhaul of Insight's Search, Part 2)
merge dev_5_0 -D org: PR 2678 (Matlab CZI job)
merge dev_5_0 -D org: PR 2681 (12252 script limit)
merge dev_5_0 -D org: PR 2693 (Mousewheel zoom centres on mouse location)
merge dev_5_0 -D org: PR 2726 (Preview fix)
merge dev_5_0 -D org: PR 2741 (add trivial checksum algorithm that reflects file size only)