A modified version of Apple's WWDC 2013 code sample, iOS-CollectionViewTransition