Improved plugin loading

Example plugin now available in separate repo