Simple packet handling

Made it really easy to add more (support) packets in the future. It
will eventually be put into its own class, so the Socket server can be
run in a thread.