Added basic plugin loading/unloading; regex matching partially done