Added the events library
Replaced the Hook calls with event fires

well most hook references were changed to events but some were just
removed
Some more "events" modifications