Merge pull request #192 from dimagi/case-domain-map

Add class to track case/domain mapping
Merge branch 'master' into consumption-fix