Split away the ScalaJSClassEmitter off JSDesugaring.

The idea being that, eventually, the DCE will be able to call
the parts of ScalaJSClassEmitter which are reachable directly,
instead of emitting the entire JS code then parse it back.