Added base interface prefs db
Removed console.log
updated api.js to have getPluginprefs and corrected plugin init to match interface