Added the concept of hooks, which are events we fire off when shit happens, allowing plugins to do more complex crap.