Fixed hanging direction bugs.
Fixed dispender direction bug
Use the json writer to write sign texts.
Without this change the client disconnects if the text contains "
Anvil: Arrow Tile tags are a short in Vanilla
Fixed wrong Surrounding size
Merge branch 'master' into Fixes
Comment style
Protocol 1.8: Added checks for values presence.

Reported by @worktycho / Coverity.
Protocol 1.8: Handling packet compression properly.

The compression didn't work with CommLog turned on.
Merge pull request #1452 from Howaner/Fixes

Fixes
Added cByteBuffer::WriteBEUShort().
TwoLevel BioGen: reads params from INI file.
cByteBuffer: Fixed position reading.
Protocol 1.8: Fixed plugin message packet.
cByteBuffer: Simplified ReadPosition().

Also, by popular demand, added more comments to the code.
Improved searching for spawn.

Won't spawn on a small island inside ocean anymore.