First pass of basic functionality complete.

Tests added for JVM argument set up. Plugin has not been tested.
Fixes to retrieval of agent jar and applyTo method.