Critical fixes and sundries

* Applies the fix to pathfinding from **sp3**
* Fixes a crash when incoming connections are received immediately on startup.
* Two sundries
@JoelKatz @scottschurr