Lots of event functions wrapped.

A bunch of functions are not implemented due to threading
issues or just not having certain structures wrapped. This
will be fixed someday. For now, basic functionality for events
is in, allowing someone to fully process the event queue.