Fixed issue with swarm shutting down cleanly

added option for maxConns; fixed issue with swarm shutting down cleanly by clearing non-peer connection timeouts.

this PR is a dependency of my PR for bittorrent-client.