Rewrote packet serialization to use a serialization dependency, to make potential unit testing easier.