Better use Python slicing
Simplify encoding/decoding URL parts
Update docstring
Simplify contentmanager
Remove some unnecessary imports
Fix to if test
Merge pull request #2 from takluyver/multidir-tak1

Tweaks to multidir