[WIP] Subresource integrity tests

I started working on some tests for SRI. I have no clue if I'm doing this right. The tests I have are pretty basic and only test the script tag. I'm not sure what all other edge cases need testing.

/cc @mozfreddyb @mikewest @metromoxie