Removed the huge switch for network errors

This commit removed the huge switches that were used
for managing QNetworkReply::NetworkError. It now uses
a shared implementation in util_p.h.

Even if this implementation (that uses metaobjects) is
a bit slower, since it needs more calls, it should not
be a problem.