speed up app settings pageload

by making multimedia reference checking asyncronous on-demand
Merge pull request #4901 from dimagi/faster-app-settings

speed up app settings pageload