Metacore plugin integration

Adds metacore plugin integration functionality
This WAY too nested.