Register ServiceListener for IChatMessages only (makes the instanceof
check obsolete too but going to leave it in anyway).
Cleaned imports