Adding event package for pluggable global event listeners.
Move test utility function to _test.go file.
Merge branch 'event'