Half-done upgrade to melonJS 1.0.0-dev