added ErrorEvent WebIDL and errorevent.rs

Rebased from #3822.