Fix class exporting; improve BNetworkServer

Add connection spam control to BNetworkServer.