Scala in Action rest server code