[HUGE] Rewrite packets, add support for 1.8 (UNFINISHED)