Changed StateManager to use OwinContext instead of HttpContext