wait for the testapp to load

Sometimes the app takes long to load after launching, so 
         self.assertTrue("certtest" in self.marionette.get_url())

would fail since the current url would be about:blank since the page was still loading. I've added some wait code. Unfortunately, we can't use the Wait class since we're stuck with marionette_client 0.7.1 :(