SingletonService: add getInstance(Class) method

This method lets you request the singleton instance of the given class.