Implement WebIDL method overloads. Fixes #540.
auto merge of #549 : jdm/servo/overload, r=jdm,metajack