added events flags to socket object, set events.data.ptr to socket obj
Merge pull request #60 from opentechinstitute/socket-events

Socket events