Moved packet dispatching to PacketDispatcher.h/cpp, corrected headers