Framework / Swift support

Need to rebased/rebuilt together with the swift branch on CocoaPods/CocoaPods.