Updated tests to support state machine save/load.

Intermediate commit. Updated from latest upstream scxml.js.
All tests for state machine serialization pass.

Also, switched from tape to nodeunit for unit testing.