Added iOS5+, iPad support and rotation fixes

Thank you for great piece of code!
I added updates to support iOS versions 5.x and 6.x (didn't check on 4.x but think it shoud be fine too).
Also added proper support of iPad and fixed some bugs on rotations.
Note: to be able compile demo project under iOS5 I had to disable Autolayout.