Cloudant cleanup scripts and tweaks