Upgrade to Scala 2.11.0-M5.

And all the changes need to adapt to the new internal API
of the compiler, and other small things.
Upgrade to Scala 2.11.0-M7.

Again with the necessary changes.