iOS 5 compatibility and scrolling to bottom in landscape

Here are some changes I made to use this category with iOS 5 and also to fix an issue where UIWebView could not be scrolled to the bottom of the page when in landscape orientation (in iOS 5,6 & 7).