Improve tester.
Add simple glance tests.

Move glance function used in nova test from shared to glance.

Introduce wait_for_output shared functions.