Additional cleanup and bugfixing

Fixes util/media event bug
Adds more tests for extend and pubsub
Deprecating nbd/Events