Send form-init before form-focus; make form test case more reliable.

Eliminate some time-based wait() statements in the func_forms.js test
case to make it deterministic.  Also make ACE/CodeMirror tests more
reliable.
Hook up doctest.js to phantomjs and travis for CI testing.
Add hixie-76 websocket support; turn on additional phantomjs tests.

Add support for (old, obsolete) hixie-76 websockets, which not
coincidentally happen to be the version of the websocket standard
supported by phantomjs 1.x.

This allows us to turn on the functional tests in the doctestjs suite.