Added iOS5 compatibility

It detects version less than iOS6 and it opens the callback url in old style

<!---
@huboard:{"order":253.375}
-->