State and flowdock

Implements a state object for actions to pass information along.

Also fixes up flowdock notifications.