Scala 2.10 support

The project now builds successfully with Scala 2.10.0-M7. Note that the purity
analysis is very broken due to changes in existentials - it needs real fixing.

To cross-compile, use +compile or +test from the sbt commandline.