Add support for selecting only openid v1 or v2 with openid_version; more logging.