Fix query parameter bugs, get some streaming code started.