ignore media files for remote apps
only encode text files
add comment
Merge pull request #4968 from dimagi/offline-remote

Offline app download for remote apps