Moved things around, and deleted things that will go into new scion-research and scxml-testing projects.
Deleted more things, moved things around.
Intermediate commit. Eliminating and refactoring.
Merge branch 'master' into refactoring-amd-to-commonjs

Conflicts:
	lib/scxml/state-kinds-enum.coffee
	src/main/bash/build/convert-scxml-tests-to-json.sh
	src/main/bash/build/generate-requirejs-array-test-loader-module.sh
	src/main/bash/build/generate-requirejs-json-test-tuples.sh
	src/main/bash/build/generate-requirejs-test-loader-module.sh
	src/main/bash/util/scxml-to-json.sh
	src/main/coffeescript/node/index.coffee
	src/main/coffeescript/optimization/class.coffee
	src/main/coffeescript/optimization/initializer.coffee
	src/main/coffeescript/optimization/state-table.coffee
	src/main/coffeescript/optimization/switch.coffee
	src/main/coffeescript/optimization/transition-optimizer.coffee
	src/main/coffeescript/runner.coffee
	src/main/coffeescript/scxml/SCXML.coffee
	src/main/coffeescript/scxml/async-for.coffee
	src/main/coffeescript/scxml/doc2json.coffee
	src/main/coffeescript/scxml/doc2model.coffee
	src/main/coffeescript/scxml/event.coffee
	src/main/coffeescript/scxml/extra-model.coffee
	src/main/coffeescript/scxml/json2extra-model.coffee
	src/main/coffeescript/scxml/json2model.coffee
	src/main/coffeescript/scxml/model.coffee
	src/main/coffeescript/scxml/scxml-dynamic-name-match-transition-selector.coffee
	src/main/coffeescript/scxml/setup-default-opts.coffee
	src/main/coffeescript/test-harness/basic-test-harness.coffee
	src/main/coffeescript/test-harness/browser-harness.coffee
	src/main/coffeescript/test-harness/harness.coffee
	src/main/coffeescript/test-harness/multi-process/client.coffee
	src/main/coffeescript/test-harness/multi-process/initialize-json-test-descriptor.coffee
	src/main/coffeescript/test-harness/multi-process/json-tests.coffee
	src/main/coffeescript/test-harness/multi-process/scxml.coffee
	src/main/coffeescript/test-harness/multi-process/server.coffee
	src/main/coffeescript/test-harness/node-optimization-harness.coffee
	src/main/coffeescript/test-harness/optimization-harness.coffee
	src/main/coffeescript/test-harness/report2string.coffee
	src/main/coffeescript/test-harness/rhino-optimization-harness.coffee
	src/main/coffeescript/test-harness/simple-browser-test.coffee
	src/main/coffeescript/test-harness/simple-browser-test.html
	src/main/coffeescript/test-harness/simple-env.coffee
	src/main/coffeescript/test-harness/simple-node-test.coffee
	src/main/coffeescript/test-harness/spartan-optimization-harness.coffee
	src/main/coffeescript/util/BufferedStream.coffee
	src/main/coffeescript/util/annotate-scxml-json.coffee
	src/main/coffeescript/util/memory.coffee
	src/main/coffeescript/util/readline.coffee
	src/main/coffeescript/util/reduce.coffee
	src/main/coffeescript/util/set/ArraySet.coffee
	src/main/coffeescript/util/set/BitVector.coffee
	src/main/coffeescript/util/set/BooleanArray.coffee
	src/main/coffeescript/util/set/ObjectSet.coffee
	src/main/coffeescript/util/utils.coffee
	src/main/python/scxml/SCXML.py
	src/main/python/scxml/doc2model.py
	src/main/python/scxml/evaluators/es.py
	src/main/python/scxml/evaluators/interface.py
	src/main/python/scxml/evaluators/py.py
	src/main/python/scxml/event.py
	src/main/python/scxml/json2model.py
	src/main/python/scxml/model.py
	src/main/python/scxml/multithreaded.py
	src/main/python/scxml/simpleEnv.py
	src/main/python/scxml/test/harness.py
	src/main/xslt/add-entry-exit-logging.xsl
	src/main/xslt/flattenTransitions.xsl
	src/main/xslt/normalizeInitialStates.xsl
	src/test-scripts/run-basic-test.sh
	src/test-scripts/run-optimization-tests-node.sh
	src/test-scripts/run-optimization-tests-rhino.sh
	src/test-scripts/run-optimization-tests-spartan-shell.sh
	src/test-scripts/test-runner.html
	src/test/actionSend/send1.json
	src/test/actionSend/send1.scxml
	src/test/actionSend/send2.json
	src/test/actionSend/send2.scxml
	src/test/actionSend/send3.json
	src/test/actionSend/send3.scxml
	src/test/actionSend/send4.json
	src/test/actionSend/send4.scxml
	src/test/actionSend/send5.json
	src/test/actionSend/send5.scxml
	src/test/actionSend/send6.json
	src/test/actionSend/send6.scxml
	src/test/actionSend/send7.json
	src/test/actionSend/send7.scxml
	src/test/actionSend/send8.json
	src/test/actionSend/send8.scxml
	src/test/assign-current-small-step/test0.json
	src/test/assign-current-small-step/test0.scxml
	src/test/assign-current-small-step/test1.json
	src/test/assign-current-small-step/test1.scxml
	src/test/assign-current-small-step/test2.json
	src/test/assign-current-small-step/test2.scxml
	src/test/assign-current-small-step/test3.json
	src/test/assign-current-small-step/test3.scxml
	src/test/assign-next-small-step/test0.json
	src/test/assign-next-small-step/test0.scxml
	src/test/assign-next-small-step/test1.json
	src/test/assign-next-small-step/test1.scxml
	src/test/assign-next-small-step/test2.json
	src/test/assign-next-small-step/test2.scxml
	src/test/assign-next-small-step/test3.json
	src/test/assign-next-small-step/test3.scxml
	src/test/atom3-basic-tests/m0.json
	src/test/atom3-basic-tests/m0.scxml
	src/test/atom3-basic-tests/m1.json
	src/test/atom3-basic-tests/m1.scxml
	src/test/atom3-basic-tests/m2.json
	src/test/atom3-basic-tests/m2.scxml
	src/test/atom3-basic-tests/m3.json
	src/test/atom3-basic-tests/m3.scxml
	src/test/basic/basic0.json
	src/test/basic/basic0.scxml
	src/test/basic/basic1.json
	src/test/basic/basic1.scxml
	src/test/basic/basic2.json
	src/test/basic/basic2.scxml
	src/test/cond-js/TestConditionalTransition.json
	src/test/cond-js/TestConditionalTransition.scxml
	src/test/cond-js/test0.json
	src/test/cond-js/test0.scxml
	src/test/cond-js/test1.json
	src/test/cond-js/test1.scxml
	src/test/cond-js/test2.json
	src/test/cond-js/test2.scxml
	src/test/default-initial-state/initial1.json
	src/test/default-initial-state/initial1.scxml
	src/test/default-initial-state/initial2.json
	src/test/default-initial-state/initial2.scxml
	src/test/default-initial-state/initial3.json
	src/test/default-initial-state/initial3.scxml
	src/test/delayedSend/send1.json
	src/test/delayedSend/send1.scxml
	src/test/delayedSend/send2.json
	src/test/delayedSend/send2.scxml
	src/test/delayedSend/send3.json
	src/test/delayedSend/send3.scxml
	src/test/documentOrder/documentOrder0.json
	src/test/documentOrder/documentOrder0.scxml
	src/test/hierarchy+documentOrder/test0.json
	src/test/hierarchy+documentOrder/test0.scxml
	src/test/hierarchy+documentOrder/test1.json
	src/test/hierarchy+documentOrder/test1.scxml
	src/test/hierarchy/hier0.json
	src/test/hierarchy/hier0.scxml
	src/test/hierarchy/hier1.json
	src/test/hierarchy/hier1.scxml
	src/test/hierarchy/hier2.json
	src/test/hierarchy/hier2.scxml
	src/test/history/history0.json
	src/test/history/history0.scxml
	src/test/history/history1.json
	src/test/history/history1.scxml
	src/test/history/history2.json
	src/test/history/history2.scxml
	src/test/history/history3.json
	src/test/history/history3.scxml
	src/test/history/history4.json
	src/test/history/history4.scxml
	src/test/history/history5.json
	src/test/history/history5.scxml
	src/test/in/TestInPredicate.json
	src/test/in/TestInPredicate.scxml
	src/test/multiple-events-per-transition/test1.json
	src/test/multiple-events-per-transition/test1.scxml
	src/test/parallel+interrupt/test0.json
	src/test/parallel+interrupt/test0.scxml
	src/test/parallel+interrupt/test1.json
	src/test/parallel+interrupt/test1.scxml
	src/test/parallel+interrupt/test10.json
	src/test/parallel+interrupt/test10.scxml
	src/test/parallel+interrupt/test11.json
	src/test/parallel+interrupt/test11.scxml
	src/test/parallel+interrupt/test12.json
	src/test/parallel+interrupt/test12.scxml
	src/test/parallel+interrupt/test13.json
	src/test/parallel+interrupt/test13.scxml
	src/test/parallel+interrupt/test14.json
	src/test/parallel+interrupt/test14.scxml
	src/test/parallel+interrupt/test15.json
	src/test/parallel+interrupt/test15.scxml
	src/test/parallel+interrupt/test16.json
	src/test/parallel+interrupt/test16.scxml
	src/test/parallel+interrupt/test17.json
	src/test/parallel+interrupt/test17.scxml
	src/test/parallel+interrupt/test18.json
	src/test/parallel+interrupt/test18.scxml
	src/test/parallel+interrupt/test19.json
	src/test/parallel+interrupt/test19.scxml
	src/test/parallel+interrupt/test2.json
	src/test/parallel+interrupt/test2.scxml
	src/test/parallel+interrupt/test20.json
	src/test/parallel+interrupt/test20.scxml
	src/test/parallel+interrupt/test21.json
	src/test/parallel+interrupt/test21.scxml
	src/test/parallel+interrupt/test22.json
	src/test/parallel+interrupt/test22.scxml
	src/test/parallel+interrupt/test23.json
	src/test/parallel+interrupt/test23.scxml
	src/test/parallel+interrupt/test24.json
	src/test/parallel+interrupt/test24.scxml
	src/test/parallel+interrupt/test25.json
	src/test/parallel+interrupt/test25.scxml
	src/test/parallel+interrupt/test26.json
	src/test/parallel+interrupt/test26.scxml
	src/test/parallel+interrupt/test27.json
	src/test/parallel+interrupt/test27.scxml
	src/test/parallel+interrupt/test28.json
	src/test/parallel+interrupt/test28.scxml
	src/test/parallel+interrupt/test29.json
	src/test/parallel+interrupt/test29.scxml
	src/test/parallel+interrupt/test3.json
	src/test/parallel+interrupt/test3.scxml
	src/test/parallel+interrupt/test30.json
	src/test/parallel+interrupt/test30.scxml
	src/test/parallel+interrupt/test31.json
	src/test/parallel+interrupt/test31.scxml
	src/test/parallel+interrupt/test4.json
	src/test/parallel+interrupt/test4.scxml
	src/test/parallel+interrupt/test5.json
	src/test/parallel+interrupt/test5.scxml
	src/test/parallel+interrupt/test6.json
	src/test/parallel+interrupt/test6.scxml
	src/test/parallel+interrupt/test7.json
	src/test/parallel+interrupt/test7.scxml
	src/test/parallel+interrupt/test8.json
	src/test/parallel+interrupt/test8.scxml
	src/test/parallel+interrupt/test9.json
	src/test/parallel+interrupt/test9.scxml
	src/test/parallel/test0.json
	src/test/parallel/test0.scxml
	src/test/parallel/test1.json
	src/test/parallel/test1.scxml
	src/test/parallel/test2.json
	src/test/parallel/test2.scxml
	src/test/parallel/test3.json
	src/test/parallel/test3.scxml
	src/test/script/test0.json
	src/test/script/test0.scxml
	src/test/script/test1.json
	src/test/script/test1.scxml
	src/test/script/test2.json
	src/test/script/test2.scxml
	src/test/scxml-prefix-event-name-matching/star0.json
	src/test/scxml-prefix-event-name-matching/star0.scxml
	src/test/scxml-prefix-event-name-matching/test0.json
	src/test/scxml-prefix-event-name-matching/test0.scxml
	src/test/scxml-prefix-event-name-matching/test1.json
	src/test/scxml-prefix-event-name-matching/test1.scxml
	src/test/send-data/send1.json
	src/test/send-data/send1.scxml
	src/test/targetless-transition/test0.json
	src/test/targetless-transition/test0.scxml
	src/test/targetless-transition/test1.json
	src/test/targetless-transition/test1.scxml
	src/test/targetless-transition/test2.json
	src/test/targetless-transition/test2.scxml
	src/test/targetless-transition/test3.json
	src/test/targetless-transition/test3.scxml
Refactored, simplified core scion module now works for basic nodejs demo.
Added index module to act as main entry point into scion modules, and modified nodejs demo to use it.
Added HTTP test server to be run with test client included in scxml-test-framework.
Rewrote core SCXML interpreter in JavaScript.
Augmented test server to for API change.
Converted annotate-scxml-json to JavaScript. Removed dead coffeescript code.
Updated package.json
Updated .gitignore
Updated Makefile
Added stitch build script.
Updated demos to work with commonjs stitch modules.
Added wrapper to underscore to use global underscore when available. This is better for use on the web, as underscore can be loaded separately and cached.
Added new parsePage script.
Moved out test-server.
Fixed broken test-server script.
Removed unncessary use of _.bind in calls to forEach and map.
Deleted demos, which have been moved out to project jbeard4/scion-demos