use locally stored versions of external libraries for tests
split josm-autorepair tests into atomic test cases and fix ...

... and fix non-working repair when multiple initial declarations
are present (e.g. [out:json][timeout:25];)