Use Addressable gem to handle URIs

This would cover #173