Removed reporting from trunk. Mooc: Factored reporting from maze into common.js and added reporting to turtle. The string version of the user's code is generated in execute but the success is evaluated in checkAnswer, since we need both of these to report to the server I could either pass code on to checkAnswer or make it a property of Turtle. I chose the later since animate (which calls checkAnswer) is called asynchronously we would have to wrap the setTimeout function in an anonymous function which calls animate with code as a parameter. Moved sourcing of common into html of Turtle in mooc to match maze and trunk. Fixed resetButton for maze in mooc.
Removed reporting from trunk.
Mooc: Factored reporting from maze into common.js and added reporting to turtle. The string version of the user's code is generated in execute but the success is evaluated in checkAnswer, since we need both of these to report to the server I could either pass code on to checkAnswer or make it a property of Turtle. I chose the later since animate (which calls checkAnswer) is called asynchronously we would have to wrap the setTimeout function in an anonymous function which calls animate with code as a parameter.
Moved sourcing of common into html of Turtle in mooc to match maze and trunk.
Fixed resetButton for maze in mooc.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/12488043

git-svn-id: 2cf55447cea94972d775c94cce66c944ede0459c@1184 c400ca83-b69d-9dd7-9705-49c6b8615e23

carlosperate/ardublockly,carlosperate/ardublockly,adrgerez/ardublockly,CocoMake7/CocoBlockly,kallex/blockly,TechplexEngineer/EasyJ4FRC,TechplexEngineer/EasyJ4FRC,CocoMake7/CocoBlockly,adrgerez/ardublockly,kallex/blockly,CocoMake7/CocoBlockly,TechplexEngineer/EasyJ4FRC,carlosperate/ardublockly,TechplexEngineer/EasyJ4FRC,adrgerez/ardublockly