Added a progress dialog to block user action while the map is refreshing
Fixed a bug where the ProgressDialog from the previous commit doesn't get dismissed
Don't call appFinishedLoading until the layers and features finish loading.
Make sure the progress dialog from the previous commits gets dismissed on the UI thread