Add snippets revsDiff, PouchDB event and plugin