don't drop spaces in path/collection names (fixes #499)
URL-decode path segments (Fixes #498)

- and a nicer extractor for path segments
Merge pull request #501 from mossprescott/ready/paths-with-spaces

Two issues with spaces in paths in the API