Merge pull request #1 from jmesnil/master

API refactoring
Use CocoaPods to manage dependencies
fix testConnectWithError