allow elements to be serialized for execute, etc

adding `element.prototype.toJSON` should allow for passing elements as args
to execute etc.  as an example
https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/execute_async
explains how args can be a WebElement reference and this PR provides suitable
serialization to make this work.