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!
Not ok. Massive smell. Sorry you're the one to hit the point at which it's just unbearable, though.