Better automated tests

Use Mocha and Chai for running automated tests instead of Jasmine.
To get visual feedback of the rotations working. Also, there seems to be a glitch where calling all the rotations in one go does not work properly (some rotation calls are skipped (or they fire onTransitionEnded immediately), looking into that.