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!
Hmm, this is throwing the existing incoherence into sharp relief. Need to think about how to unfuck all this a bit...