event comparators

Implements `#==`, `#eql?`, `#<=>` and `#to_s` for EventSource, EventType and Event, as makes sense.