Fix event unbinding and add namespace support

Fixes #99 #260 and #264