Load thumbnail instead of lowest resolution

Lowest resolution retrieval then scaling is too expensive for
very large image. Load the existing thumbnail instead.
Remove commented out code.
Retry when a lock exception occurred. (see #10604)

When running the server locally and using 4 re.
lock exceptions can occur while rendering an image, retry.
Fix max retry to 2.
Do not reactivate RE when reconnecting if not active.
No longer handle null result.

This is no longer required, the image is now updated
using the update method.
Remove commented out code.
Remove method w/o implementation.
Review shut down sequence (see #10633)
Fix left shift (see #10595)
Remove import (eclipse import completion)
Remove System.err commented out.
Fix square selection
Remove commented out code.
Comment out unsafe prefix "."
Remove hard-coded memory settings for 64bit Java 6

maxmem is no longer set for javac and javadoc in
etc/local.properties.example. Nor are these set by
build.py. If the system is detected to be a 64 bit
Java 6 VM, then no properties are set at all.

Otherwise, defaults are taken.

Note: my local environment had javac.maxmem set in
ANT_OPTS which has likely made this more complicated
then it ever needed to be.
Revert "Change error responses to 404 in query API"

This reverts commit 1f3f8d1354444445a23c337be315252c156b9e01.

Per suggestion from will-moore, removing 404 responses from AJAX calls
and returning a dictionary with an error field instead.
merge develop -D org -I include -E exclude: PR 898 (Bulk annotations for web image viewer, rebased onto develop)
merge develop -D org -I include -E exclude: PR 912 (Add Bio-Formats' turbojpeg artifact to the classpath)
merge develop -D org -I include -E exclude: PR 984 (Add more C++ tests (rebased onto develop))