Add support for generating IdP metadata (or using supplied); Add entity ID attribute instead of trying to compute; Make audit_log_pattern configurable by attribute; Define default nil value of scope attribute