Adds getServiceReferences utility method.
Moves part that handles PopupMessageHandler OSGI services to abstract systray impl.