Structure and mechanism in site-specific recombination