Bug 958252 - Implement MarionetteHelper#waitForChild

This patch also fixes the implementation for MarionetteHelper#waitForElement.