Fix horrible recv bug and fix bb security.

Login/character server is now fully functional up to packet E0.