Andrew Commins analyses the legal issues relating to the question of gay marriage.