Added alert protocols according to Json Wire Protocol here: https://code.google.com/p/selenium/wiki/JsonWireProtocol

Now you can
- fetch the text of the currently displayed alert box
- accept or dismiss current alert