added support for automating ui for tests

 done with listening for messages coming from the postMessages

$related to https://github.com/openpeer/hcs-system-tests/issues/1