Manipulate dialog boxes

This patch will support to get messages (of `window.alert()`, `window.confirm()`, and `window.prompt()`) and to set responses (for `window.confirm()` and `window.prompt()`) using `onAlert`, `onConfirm`, and `onPrompt` of phantomjs.