Use classes and modules from ecmascript harmony

Translation is done with google's traceur compiler.