Finished 1.4.7 compatibilty

1.4.7 compatible!
Restructured the binaryWriter class to make it easier to use for dynamic
length packets.