Fixes for request path handling

Includes #35.