Make window.close() close the window.
auto merge of #814 : jdm/servo/windowclose2, r=metajack

Fixed #671.