Clean up actions

New type for messages: TYPE_ACTION. This should clean up some things.