Merge pull request #4 from ericbmerritt/master

some bug fixes and clean up.
convert the uri parser from lists to binaries

This contains an API change