Multiquery

Not for immediate merge.

I've been working on results displaying for multiple queries. This involves quite some changes as most of the functionality has been written with the assumption that there will only be one result set displayed.