Add support for event flag useCapture

This passes the flag on to the addEventListener call.
Added tests for this, that run in Casper.