Added error checking for http extension and switched to updated version of getting federation metadata from AzureAD