Update podspec for OS X, add platform specific code

Podspec is now compatible with OS X targets. 
Separate code for UIKit login controller and the new AppKit login window controller. 
Updated code for file uploads, need to reconcile with latest changes on the development branch.