Added limiting of max client connections.

Added the ability to limit the number of simultaneous client connections on a server.