Sets up the namspaces
Adds simple event API