change credentials to QVariantMap instead of QVariantHash

Qt5 QJsonDocument::fromVariant() doesn't work with QVariantHash, so I changed all credentail related QVariantHash occurrences to QVariantMap. Tested with Qt4 & Qt5.