[test] First using CasperJS for testing.
[test] Prepare framework for FSM test suites.
[test] Import QUnit FSM test cases into CasperJS tests.
Merge branch 'casper-test' into develop