Changed PacketRegistry to use PacketVersion

Reduced the functions in PacketRegistry by taking PacketVersion as
input.
Finished encapsulating packet handlers
Defined PacketRegistry methods as static

As the methods were accessing handler / handler_v2 only, there's no need
to have instances of PacketRegistry. Changed all methods to static.