fixex compile errors for apache mina 0.10.0 and replaced deprecated behaviour of scala.concurrent.ops with the modern future implementation