iOS 4.0 Compatibility

I've rewritten the checkVersion-method to achieve compatibility with iOS 4.x. 
I added JSONKit as a submodule, because of the missing native support of JSON in iOS < 5.0.