Fixed a lot of bugs and added events.

Added perms for breaking and opening dispensers, and fixed a
NullPointer or 2.