Refactor NioSocketAcceptor and NioSocketConnector to abstract classes.
Make relavent changes and remove unused classes.