Restructure plugin

Signed-off-by: Erik Bernskiold <erik@xldstudios.com>