First stab at tests
Removed unneeded imports
flatten nested list comprehension
remove unused variable ES_QUERY_CHUNKSIZE
add get_timestamp to utils
move reporting code out of elastic.py
create count, time pairs in single function
remove unused imports
use existing function
use list() instead of list comprehension
remove inline imports
fix missing filters, pass to es_histogram in a simplified way
remove argument shadowing, add pep8 fixes
simplify histo_data function call
move helper functions out of get_general_stats_data
apply default user filters in new indicators
Merge pull request #4409 from dimagi/more-refactoring

More refactoring
small fixes
Fixed a bug with the bulk download sheet and questions in groups
Merge branch 'bulk-app-translate' into bulk-app-translate-tests