refactor jumbled methods into new simulator.js and xcode.js
and add support for cleaning safari files on ios8
ios8-related testsuite updates + fixes