Added DoWaitForElement command

Also added a Wait bool to the base selector command so any selector
based command can optionally wait for the element to exist, up to the
specified timeout.