Select Atom Indices (by name) in mdtraj

What do you think about moving this code from mixtape? Right now, all the logic is in the AtomIndices script, which makes it difficult to use programatically. 
Should the functionality to run itertools.combinations and get the pairs be part of the library API? I think maybe we should just drop this option.