Make sure that media is also downloaded on sync
Refactored the ControlPanel.js and a lot of the logic related to displaying the feature info dialog.  After initial testing it seems to have fixed several issues with the edit and insert feature controls.