Scala port of the examples from Jboss Netty distribution