adding the settings json to the front of the json handed back to the index page, allows us to add settings into this file for later use
refactoring and adding support for the new structure of the json coming from imageloader.php
more refactoring
samle settings file, none of this info is used in the index page at this point