Reordering things for new Context structure so Uri doesn't get used before we know it's a web request and we do have a request