Replace margaret with couch_stats

Also see https://github.com/cloudant/dbcore/pull/187.