Remove PairingPolicy enum

Accidentally left over from removing pairing stuff
Fixed incorrect Version handling
PacketWriter fixes

Renamed write() to writeTo(); PacketWriter doesn't assume CLIENT packet
types (How long has THAT been there?!?)
Unit testing infrastructure

Also includes tests for WelcomePacket and VersionPacket
Don't commit the build directory
Build script