OWIN implementation improvements