Add trigger action support

RFC @burden, @sobering — This is my WIP implementation of event triggers, I'd love to get y'all's feedback so I can incorporate it early.