Move Filter.toString() back
Replication.Filter.toString -> toQueryString
Refactor
Refactor

Took out the logic that skips design doc, we will put that in
separate PR.
Fix a test name
Add more tests