Upgraded Microsoft Owin components to the latest version and fixed the related breaking changes.