Added basic Event class.

Also working on getting Postgres stuff.