McDonald's admits some of its past initiatives hurt its own restaurants. Now it's spending big to get them back on track.