Added plugin support and a basic plugin.