More changes to registration to respect new wsgi settings.