Do not adhoc provision & certificate for iOS Simulator build, because the server does not need them anymore

Refactor the code to break the huge monolithic class into dedicated commands

Change emulate and remote commands to use the new APIs from common lib.