Unit Test Support

Added Unit Test running to the Xcode project and tidied up the Schemas.
 Includes ability to build some enterprise features (code not available)