updated system to allow use of other apps as plugins
gross changes for app plugins