Vendorized six.

Also added a credit to Aron Griffis for the Py3K port.
Fixed tests and impl. for URLPath.join_segments().
Refactored Py3K compatibility code to use six.
Bumped to v2.3.1.