604 add xls export to data endpoint

closes #604
but the code didn't change for exports, it was just refactored, why is it needed now but wasn't before? was it broken before?