Inject some action wrappers.

Change-Id: Iee5c2f5062ad1ae3237731fb79b1e03f54566b1f
Reviewed-on: http://gerrit.dmdirc.com/2694
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
Speed up unit tests.

Stop creating a new jvm for every single test (reduces runtime from
the order of minutes to the order of seconds).

Change-Id: I55fe45cc8d6c0523acf6317585b23b4062f1aa48
Reviewed-on: http://gerrit.dmdirc.com/2697
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager