UNDERTOW-266 Only match the most specific security rules
WFLY-3537 Integer overflow when calculating max age
WFLY-3543 Allow the dispatcher to access files in WEB-INF and META-INF
UNDERTOW-261 Make sure session is only cleared if it is the current session
UNDERTOW-270 ServletContext.getRealPath(".") returns null
Remove deprecated method from examples
UNDERTOW-269 SSO not destroyed when the last associated session times out
Don't invalidate other sessions on logout - just remove the SSO.
Now that undertow is on Java 1.7, use AutoCloseable for SignleSignOn.
Fixing substring-index in ProxyPeerAddress Handler

In ProxyPeerAddressHander, the substring boundary is wrongly calculated with 0 to index -1.
As the end-index is exclusive, it must be 0 to index.

Example XFF-Header without additional proxies (was correct before fix)
X-Forwarded-For: 123.123.123.123
Handler-Value: 123.123.123.123

Example XFF with at least one additional proxy:
X-Forwarded-For: 123.123.123.123, 210.210.210.210
Handler-Value (wrong): 123.123.123.12  (note the missing last character)
Handler-Value (fixed): 123.123.123.123