Fixed tests after API change in the common lib
Merge pull request #416 from Icenium/totev/fix-tests

Fixed tests after API change in the common lib
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.