WIP - replicate include_docs

first stab, currently a weird error with local dbs