Added basic event handler class.

Implemented the majority of agent and messaging systems for this
project. Almost done!