refactor DataTabulator for better code reuse
add post query filtering of data
Merge pull request #871 from dimagi/dataformatter

refactor DataTabulator for better code reuse