Make app plugin instance available as classproperty

SomePlugin.instance always returns the instance associated with the
current app
Add committing_iterator util