minor refactor
First draft of consumption cache rework
WIP Refactoring
Finish consumption rework
Move code to make casexml tests happy
remove print commands
Merge branch 'master' into consumption-fix-again

Conflicts:
	submodules/casexml-src
make device_users return only distinct usernames

also possibly improve performance insignificantly
Remove unused code
No longer filter only stock transactions
Change reporting rates calculations
Check if domain exists before getting settings
Update casexml
remove feature flags for invoicing
prep celery invoicing task to run at 9 AM EST on the first of each month
Make it reporting/non-reporting only
remove as_test
Merge pull request #3048 from dimagi/remove-feature-flags

remove feature flags for invoicing
fix incorrect arg order
use SQLPillow