Issue 171 7

These commits mainly add methods to send or receive events, triggers, hosts, and so on.