Address review comments.

* Remove extraction of undefined path segment into the resource
  context.
* Guard the timeout parameter check to make sure it is greater than 0.
* Add explanatory comment about the redirection when using the default
  bucket-type.