Use Maven Invoker API

In the end the Maven invoker API was used as it both simplifies the code and fixes some errors with the build.

Downside: app size grows again

Closes #5