Nitrile-Directed C-H Functionalization and Lewis Acid-Catalyzed Oligosaccharide Synthesis.