Implement [LenientThis] support and enable it in Document.webidl

Closes issue #3760
Add content test for [LenientThis] attribute Document.onreadystatechange
auto merge of #3812 : mukilan/servo/lenient-this, r=Ms2ger

Closes issue #3760