[FEATURE] Allow specifying an event mask when connecting

Will help to trim down the number of received events when we're only interested in a subset.

Fixes #2