Restore lost reduce function for all_docs
Fix for problems with "_design/" docIDs

Couchbase doc IDs that start with "_design/" were causing problems, so
I've renamed the magic pseudo-design-doc that the channel mapper goes in
to "_sync_design/channels".