Added all source files from old version and refactored to work with new IPlug.

Added all source files from old version and refactored to work with new
IPlug.

TODO: Set-up XCode5 project to compile for IOs.