State Preservation tutorial from http://www.techotopia.com/index.php/An_iOS_7_State_Preservation_and_Restoration_Tutorial