ENH: getEventsByType now supports custom filtering
ADD: iohub event filtering framework

Users can now write custom filters for iohub device events. Filters
accept an event stream as input, and can output 1 - n filtered event
streams. Out events must be one of the iohub device event types.