moving and refactoring imports. separating logic and places where circular dependencies could crop up. Plan is to make the report_cases in the standard/cases/ directory as a data_source/etc.

i'm not pleased with the outcome of this refactoring since i'm moving code around and thus losing an explicit revision history. I tried various filter-branch trickeries that took like 20 minutes to make duplicate histories of the new fails to no avail. any other suggestions on retaining histories on theses files i'm all ears.