added several methods to BusServer, including the main accepting loop.