Implemented AppState save and restore as NSKeyedArchive