(#3270) - trigger "denied" events on db.sync & db.replicate

follow up for https://github.com/pouchdb/pouchdb/pull/3270#issuecomment-68251726

@daleharvey Do you mind all the whitespace changes in `docs/api.md`? I can get rid of that