Enhancements to BattleServer

Which, along with Client, can deal with same-IP connections far better.
Also fixes a couple of bugs.