Writing Comet based application using Scala and the Atmosphere Framework