Refactor code
Add static polymorphism to dispatch packets
Network handlers must specialize template functions to receive specific
packets.