Added ErrorEvent WebIDL and errorevent.rs.

Rebased from #3822.