Move http context accessor to hosting