Changed delegates from unsafe_unretained to weak

Since the deploymant target changed to iOS5, all unsafe_unretained delegates should be changed to weak.