better support custom exports for remote apps

http://manage.dimagi.com/default.asp?120646