Compress/decompress URI data (#3)

Should fix #3.  I've tried to be as non-invasive as possible.

This needs to be double-checked however, as I'm still a bit busy.  Feel free to correct any coding style problems as well; I've tried to match your own style, but I'm not perfect.