Upgraded to latest Bndtools (2.3 RC2):

- simplified build dependencies a bit using proper predefined variables;
- in progress of migrating from Ant to Gradle as build system;
- added some pending code changes.
Restored accidentally deleted library.
Added gradle wrapper for headless build.
Minor updates for gradle migration.
Fixed failing itest.