autox: Add support for creating and querying windows.

The asynchronous stuff makes this a bit tricky -- we wait
for a window to be mapped and exposed before returning
from create_and_map_window() (in case the caller wants to,
say, take a screenshot), and provide an await_condition()
method that will hopefully mask delays between when a test
makes a request and when the change is actually applied by
the window manager.

BUG=none
TEST=tried it with a little test script; it works

Review URL: http://codereview.chromium.org/1292003
1 file changed