Vaguely-tested refactor+support for replaying autotick and random-choice events.
More opportunities for dumping the input history, including a hookable function for arbitrary dumping by the host page.
Merge branch 'master' of https://github.com/increpare/PuzzleScript

Conflicts:
	.gitignore
	js/debug.js
	standalone.html
	standalone_inlined.txt
Fix case of testingFrameWork include
Export debug and release builds separately; dump play trace data from debug builds and play_dump.html in Gamalyzer-ready EDN format.
Push inputs properly in testingFrameWork so that the inputHistory will be the same as the replayQueue.
Changes backported from work on Gamalyzer:

* The biggest change is probably dirty-region drawing. In other words, PuzzleScript will now only draw to the canvas those tiles which changed since the last frame was drawn (using the global `dirty` object whose keys are dirty indices), or all frames if `dirty.all = true`.
* As far as drawing goes, sprite positions are now floored to integral values to prevent potential fuzzing.
* Automatic posting of playtraces to a local [Gamalyzer](http://github.com/JoeOsborn/gamalyzer) service using gamalyze.js; if you don't include gamalyze.js on your game web page then you don't have to worry about it.
* Do not add any event listeners or play sound effects during unit testing.
* Introduce a flag to prevent unit tests from auto-advancing levels (in case we want to control that in the test).
* Only automatically call `redraw` when not unit testing; these can still be called manually.
* Some line endings and tabs/spaces seem to have changed; sorry.
* During level loading, only force image regeneration if the new level is different from the old one.
* New maps have been added to convert between direction numbers and names and between names and masks.
* Moved some global variables and constants into globalVariables.js.
Update makegif to support predictable randoms and properly dirty all tiles when loading a level in the editor.
Fix random replay, make it work with makegif as well as unit test.
Update compile script
Attempted merge with increpare/master. Tests all pass except some quirks in Mac Safari when not debugging (grr). Not yet tested with flick and scroll screen.
Hack flick and zoom screen to work with incremental redraw by not incrementally redrawing for those games.
Remove gamalyzer-specific stuff and recompile.
Fix autoticks to use pushInput via autoTickGame function
Inline and compile
Put back compile script paths
Clean up some stray lines and put back DoQuit
Get a little closer to working
Merge branch 'master' into rgts

Conflicts:
	editor.html
	js/rng.js
	standalone_inlined.txt
Fix capitalization of flickscreen and zoomscreen