Use iOS 6 UIScrollView rubber banding algorithm

Taken from https://twitter.com/chpwn/status/291794740553338880