Refactored URI.expand_path (closes #45).
Refactored URI.expand_path (closes #45).

* Leading and trailing '/' are now preserved.
* Use StringScanner to walk the path and push directory names onto a
  stack.
* If the resulting path is empty, return '/'.

buren/spidr,postmodern/spidr