WebUI Fixes

Some WebUI fixes related to #1697 (Step 0).

Qt4 build now use QtJson by Eeli Reilin (https://github.com/gaudecker/qt-json).
Qt5 build use native JSON API (introduced in Qt 5.0).