Move the script type and language checks into HTMLScriptElement.

This is IMO a more sensible place for them to live, and prepares for the
demise of hubbub_html_parser.rs, as we move to html5ever.
Merge pull request #3196 from Ms2ger/script

Move the script type and language checks into HTMLScriptElement.