Port code to Scala 2.8.0

See issue #147: compilation problems with scala 2.8.0
http://github.com/ether/pad/issuesearch?state=open&q=scala#issue/147