Bug 962645 - Support wait between press->release action chain. r=mdas

wait() before press() should not raise "MarionetteException: Element has
not been pressed."
Bug 1023753 - Define JSGC_FJGENERATIONAL only if JS_THREADSAFE. r=ted