QT5 Version backwards compatible

Make QT5-compatible version backwards compatible with pyside and qt4.

Remove * imports on qt5 and do explicit imports.

Remove remaining "old style" signal/slot stuff.