Keep track of TextEditor focus in Alert transitions.

When transitioning from a Canvas Screen to an Alert Screen, keep track
of which TextEditor has focus. When returning to the Canvas Screen,
focus the TextEditor. This helps us match app expectations with regard
to keyboard visibility.
Merge branch 'master' of https://github.com/TimAbraldes/j2me.js into keyboard
Revert "Keep track of TextEditor focus in Alert transitions."

This reverts commit 5bee769f28e11cea283b2e1e216a7a6c6c05d6c0.
Keep track of TextEditor focus in Alert transitions.

When transitioning from a Canvas Screen to an Alert Screen, keep track
of which TextEditor has focus. When returning to the Canvas Screen,
focus the TextEditor. This helps us match app expectations with regard
to keyboard visibility.

This patch also adds plumbing to allow RunTests tests to change the
current Displayable and compare the pixels of the current screen to a
reference image. These changes allow us to convert a bunch of gfx tests
to RunTests tests. The first converted test is AlertTest, which has been
updated to also test that focus is being tracked properly across showing
Alerts.
Merge branch 'master' of https://github.com/TimAbraldes/j2me.js into keyboard
Use TestHarness.setScreenAndWait from TestAlert
Merge branch 'master' of https://github.com/TimAbraldes/j2me.js into keyboard

Conflicts:
	tests/automation.js
	tests/native.js
Implementing review comments

Updating threshold, improving detection of screen being shown, making
TestHarness do threshold check when comparing screen to reference image.
Merge pull request #680 from TimAbraldes/keyboard

Keep track of TextEditor focus in Alert transitions.