further general cleanup of uri
add the ability to append to the existing path
Merge pull request #4 from ericbmerritt/master

some bug fixes and clean up.