Worked a bit more on the models for plugins

Basic data models are done for plugins. Also added permissions. I'm
looking to add NuGet support for the plugins next along with an auto
update feature. Once I have that, the basic core is done.