Fix various NIO2 sendfile issues discovered while testing ciphers, and refactor to optimize its behavior.

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