preferences in plugin manager

added functionality to load and save preferences in plugin manager