[WO-319] Implemented XOAUTH2 support

Added option to authenticate connections using XOAUTH2