Chnages to plugin system, licensing, preferences

added plugin options and plugin states