Some mods to the way files are turned into urls.  Started adding the phantom-js bit (wip)