[port] Port to Qt5/QtQuick2

Ported to QtQuick2 + few fixes in db code.

Also got rid of some useless includes in cpp code