The container is responsible for the first call to each of onWritePossible() and onDataAvailable() once a listener has been set.
Main component is the addition to the SocketWrapper of a list of dispatch types that need to be made. "Dispatch type" in this case meaning "process the socket using the specified SocketStatus". This is used to register trigger the first call to each of onWritePossible() and onDataAvailable() for which the container is responsible.
Fix some additional issues identified in the test case.


git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1514228 13f79535-47bb-0310-9956-ffa450edef68