Packet Handler

Parses all incoming packets and creates outgoing packets.