Update packets to separate encoding methods to encoders.
Update Data.java to use DataOutputStream rather than OutputStream.