Add waitForActivityStackToBeEmpty method

Enables the test to wait for all activities to finish
Merge pull request #63 from elevenfive/master

Add waitForActivityStackToBeEmpty method