Improve rotation animation

When calculating the new layout information before the rotation animation begins (willAnimateRotationToInterfaceOrientation) instead of when it is finished (didRotateFromInterfaceOrientation), the UICollectionView will nicely transition the two states.