Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56449
When creating a new session, add the message handlers to the session before calling Endpoint.onOpen() so the message handlers are in place should the onOpen() method trigger the sending of any messages.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1589631 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56430
Extend checks for suspicious URL patterns to include patterns of the form <code>*.a.b</code> which are not valid patterns for extension mappings.

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