Added placeholders for api in and out which will be going away in favor of using gangway indirectly for a second level of notification queueing.
Updated queries with an extra shared rule to reduce code size.
flare.event/event! was renamed to flare.event/event as it doesn't cause side effects anymore.
Added a lot of helper fns.