[FIX] OAuth wrong url enconding
[FIX] Incorrect credentials for OAuth are not cleared & Proper Error window for incorrect credentials in OAuth authentication process
Merge pull request #263 from renaudJennyRBS/sync

Fix #257 and fix #258 issues and some refactoring