Refactored SAML serialization code. Updated to latest HRI x509 certificate.