Add support for server-side event

Also changes to Tomcat NIO in order to support this.