added support for automating ui for tests
 done with listening for messages coming from the postMessages
Merge pull request #3 from openpeer/support-for-ui-testing

added support for automating ui for tests