Allow using URI instances for request building.
Indent properly
Check that uri is a URI or string before converting.
Merge pull request #81 from mje113/master

Allow using URI instances for request building.