Code cleanup and refactoring

 - Moving ipa commands to their own module
 - Adding preset support for resign command