Implemented debug console/player output system, started packet handling. Added more events. Last 1.5.2 commit