Brexit came to define her time as Prime Minister, but Theresa May had a long and varied political career.