Changed the Event System, made it more modular. Also fixed some serious
threading issues.