Refactored plugin base so I can add ChaiScript