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/trunk@1589630 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/trunk@1589633 13f79535-47bb-0310-9956-ffa450edef68