Added query string support.

Fixes #5