fiji-compat really depends on ij1-patcher

Let's not rely on it being a transitive dependency...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Prepare fiji-lib for a redesign of Debug#run() and Debug#runFilter()

The ij1-patcher project -- which did not exist earlier, and which
benefitted from the lessons learnt from writing fiji.Debug's run() and
runFilter() methods -- is now the vastly superior way to run
encapsulated ImageJ 1.x plugins, exploiting the runtime patching of the
ImageJ 1.x classes to allow formerly impossible ways to extend ImageJ
1.x.

So let's add the dependency and switch the way we do things in
fiji.Debug to the ij1-patcher way in the next few commits.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Do not use DefaultLegacyService for runtime patching ImageJ 1.x

It is now superseded by ij1-patcher's LegacyInjector.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Replace fiji.Debug's run method with one based on ij1-patcher

We used to do our own home-brewed thing. The experience was valuable,
though, contributing vastly to what eventually became the ij1-patcher
project. Let's now use the matured ij1-patcher to do the same thing we
did before, just better.

Incidentally, this also addresses the problem that setting plugins.dir
to the Maven output directory found 'duplicate plugins' because the
classes were found both in target/classes/ as well as in
target/<artifactId>-<version>.jar.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add a unit test to verify that fiji.Debug#runFilter() works as advertised

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
fiji.Debug: Handle relative image paths correctly

When a user calls Debug.runFilter() with a relative image path, obviously
that image path should be relative to the project directory, not to the
directory the latest ImageJ session loaded its latest image from.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Debug: ignore plugins in $HOME/.plugins/

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