extend copy_case to support commtrack models

- also migrates sqlproducts over correctly
- small moving/cleanup of code
Merge pull request #4586 from dimagi/copy-case-commtrack

extend copy_case to support commtrack models