use addressable/uri instead of uri

uri chokes on some common url patterns (underscore in hostname, for instance), so i replaced it with addressable/uri. i also added some new tests for this case and updated the Rakefile so it would run.