Port fiji-compat's JavaScriptEvaluator patch to ij-legacy

This allows ImageJ 1.x to run Javascripts with the correct class
loader.

This patch does not address the race conditions in the
JavaScriptEvaluator class.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Port Fiji's fix for IJ1's Bio-Formats detection to ij-legacy

ImageJ 1.x' way to detect whether the Bio-Formats library is present is
obviously fragile: it tests whether a plugin was installed into
a menu entry with the label "Bio-Formats Importer".

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij-legacy: Port fiji-compat's Drag 'n Drop patch regarding symbolic links

This patch is needed to resolve parent directories for TrakEM2
projects correctly.

See Albert Cardona's explanation in

	https://github.com/fiji/ImageJA/commit/53d1b5dd9

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>