Add editor unit and functional tests

Note that destruction tests involving editor have been moved out of the
createDestroy suite and into the plugins/editor suite.
editor unit and functional test cleanup

* Add editor functional tests to functional.js
* Fix failing tests on FF Mac by detecting End key behavior
* Rearrange functional tests to allow more combinations with less repetition
* Reformat / reindent remote calls
* Fix autoSave test
* Revise focus preservation test to test for observed changes
* Test both always-on and editOn editor focus preservation
* Clean out unneeded waits and variables
* Simplify and clean up test pages and switch functional test to tdd
* Raise max-duration and timeouts where necessary

Switching to tdd enables avoiding bugs when testing multiple platforms
concurrently, by storing variables within the scope of the suite.
editor functional tests: Move test page out of subdirectory