WebUI Fixes

Some WebUI fixes related to #1697 (Step 0).

Qt4 build now use QJson by Flavio Castelli (http://qjson.sourceforge.net).
Qt5 build use native JSON API (introduced in Qt 5.0).
Also fix HTTP request parsing on Qt5