Move registration of CORS stuff into service registrar.