Added new async methods wait and callback.

* Wait will repeatedly run a script and return when the result evaluates to true.

* Callback will add an onCallback handler to the page and wait until window.callPhantom is called.