iOS 7 deprecated dismissModalViewControllerAnimated -> dismissViewControllerAnimated

Backwards compatibility included.