Refactoring, commenting, and cleanup in netcode.

Refactored, commented, and cleaned up much of the networking code. Moved packet-handling code to new com.mojang.minecraft.net.PacketHandler class.