Added NuEdit test file.
Fixed some event-unregistration bugs.