Add options to URI::GID to store simple metadata as query parameters.

Fixes #39.

Ready for review :grin:
Ahh! I've also replaced the `#to_query` call with `URI.encode_www_form(parts[:params])`, so it's easier to spot encoding and decoding :grin: