Ported MoleQueue to Qt 5

Change-Id: Icb0678967abc0eee29f4264fcda66c5d3217716a
Have the logger use the aboutToQuit signal

Using the QApplication aboutToQuit signal, and changing cleanUp to
be a slot uses the route provided by Qt, and ensures the QObject
derived classes do not attempt to do anything after QApplication
etc has cleaned up. This was causing exceptions on Linux with Qt 5.

Change-Id: I60372ebfa9d62db7e5ac6bfeed4650b4f7d43913
Minor cleanup for includes in the core and client libs

Change-Id: I3ad4869b808724a7e5b6685a9d2b0d5131f95feb
Merge branch 'qt5'