Account for non-root deployments when generating shared query URLs

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Merge pull request #184 from cbmi/issue-183

Account for non-root deployments when generating shared query URLs