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!
I think I'm -1 on this waitHooks thing, but reserving judgment for now...