Add support for query string parameters. Closes #2