API changes to enable self-hosting with OWIN