When Shore Rock Partners bought the bulk of AMAG Technology from Allied Universal, Gibson Dunn provided advice.