Fixed a bug that caused the add layers success callback not to get called
Fixed a bug with MediaHelper.js that was causing the download media callback to get executed before the files were finished downloading.

Moved the logic for populating the images on the feature info dialog to MediaLoader.java.