Robin and Ted reminisce about past relationships as they search for a drunken Barney on the day of the wedding; Lily and Marshall come to a resolution.