Refactoring and fixing of the TCP socket wrapper.
Fixes to the CByteArray class.

- Added method Swap()
- Fixed the logic to serialize floating-point values. Now the values is stored internally with the precision of double, but can be read independently as a double or as a float.

Thanks to Bernard Mayeur for the fixes.
Fixes to byte array.

- fixed compilation error due to missing header
- added operator==
Now CTCPSocket disconnects every time a transimission failure occurs.

Thanks to Bernard Mayeur for finding the problem and providing a patch.
Merge branch 'master' into eyebot