Back-porting JSR-356
Need to cast to Tomcat's request object to access upgrade method

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514689 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
Rename SocketState.UPGRADING -> SocketStatus.UPGRADING_TOMCAT to indicate a Tomcat proprietary HTTP upgrade is in progress
Add SocketStatus.UPGRADING to indicate a Servlet 3.1 style HTTP upgrade is in progress.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514695 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
Some renaming and refactoring to make it easier to port other changes.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514700 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
Add upgraded flag to SocketWrapper

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514701 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
RequestFacade needs upgrade method too.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514706 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
Add some necessary plumbing for Servlet 3.1 based HTTP upgrade

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514707 13f79535-47bb-0310-9956-ffa450edef68
Need to cast to the Facade

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514709 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
WebSocket unit tests need a couple of features to be implemented (or at least not throw an exception)

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