Implemented an EventFilter, for filtering events.

Also removed unneeded references from the XGL project.