use prototype for the plugin api

there will be a corresponding pouchdb patch