Offline app download for remote apps

http://manage.dimagi.com/default.asp?149434
That would be a much larger refactor that changes how remote apps are built and I don't really want to dive into that now. I've added a comment to the change for future reference.