Small fix to query
Added sniffer and event generator scripts
Reduced idle CPU usage
Removed on_event and fixed a test
Enabled profiling on event_gen and sniffer
Further reduction in idle cpu usage
Debug updates
Fixed event queueing to rate limit