Improve use of generics in PanelAppenderBase

By saying the type parameter E of PanelAppenderBase extends LoggingEvent, we
can change the signature of the append method from

  void append(Object arg0)

to

  void append(E event)

and avoid the unnecessary casts in that method.