refactor jumbled methods into new simulator.js and xcode.js
and add support for cleaning safari files on ios8