cleanup imports + pep8
add ability to populate case db cache with an initial list

also add doc string to populate
pass initial case list to cache in get_related_cases
fix backwards set operation
Merge pull request #5039 from dimagi/cloudcare-speedup-2

Cloudcare speedup tweaks