Pinny plugin

Changing pinny to use new plugin factory.

@donnielrt @kpeatt