Socket API:  move the code that gets the status out of the folder

Move the code in socketapi.cpp where it belongs
Socket API: Make it work with Qt5's QUrl

QUrl default constructor has a different behaviour in Qt5
One must not forget to call QUrl::fromLocalFile in Qt5