pouchdb/pouchdb — pull request #2751 by jacargentina (2014-09-10 03:14:58+00:00)
Title: Fixes #2689 - Makes pass tests about filtered replication

I think i've changed may be the "core" of the replication algoritm to fix this.

Tests are green, so...

@nolanlawson @calvinmetcalf ?