base64 encode query urls

base 64 encode the query urls.

fixes #118, #37

TODO:
- compress the strings somehow. With gzip?