Convert to ARC
Fix iOS 6 depreciation warnings with modal view controller dismissal
Fix casting warnings