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!
and those are *weird* serialization choices. Seriously, what's wrong with "results"? Why make clients guess every time? results/result/error -- isn't the benefit of making it consistent clear?