Add event handling for media attach/detach
Merge branch 'master' of github.com:kazyx/WPPMM