Added functionality for registering handlers for new incoming connections on the server socket