How did the Church rake in revenue from 14th-century sex regulations? Kate Lister explores a bishop’s lucrative rulebook.