Bug Fixes

Fixed something like 6 bugs, also cleared out some of the compiler
warnings.
New packet handling method

No longer uses a massive switch statement to handle packets, instead
uses a dictionary lookup method.