Query widget

Not quite ready for merge yet. Need to make a few more changes
Another fun fun pyqt related snarl is that pyqt4 does not do co-operating classes so if this ends up being used in multiple inheritance, using super here might be a problem.  I do not belive pyside does either.

pyqt5 (which are the bindings for qt5) _do_ expect co-operating classes.