WIP Actions Hook running on Unit; tests incomplete; review welcome!

This depends on PR 141 and 163.

Tests incomplete, would appreciate any and all review on added code!
It's looking like all these params really ought to be part of the context's run method, rather than being part of the initial setup. No argument that it was rubbish beforehand, but often it's only an attempted modification that brings the better design to light.