Add `Discourse.Singleton` class mixin for creating singletons.