Move maxSockets to a handler config instead of server

Closes #6