Implement script execution for SVG documents in Firefox driver 

When used with an SVG document the script element must be created
slightly different to work correctly.

The first commit is a already in pull request 21.
CLA signed