Added test / reference plugin and connected remaining pieces of plugin framework.