Add API to access and manipulate query parameter. Fixes #47 and #48.