Some minor bits to get the saml request almost in place (needs lots more basic stuff still, but some progress)