Created a netty codec for the Minecraft protocol.
Added a method to calculate the size of a variable integer.