Make document.getElementsByTagname return a NodeList; consolidate element collection to collectElement; fix #1744
auto merge of #1756 : Manishearth/servo/nodelist-1744, r=Ms2ger

I haven't been able to test it yet (need to run a full build), but it looks like it should work.