Refactored plugin system. Now totally class-based system.