Semi-working plugin system

Will have to test how it performs under load, but for now this is a
crude yet working version.