Fixes #7862 - Upgrade rubocop version
fixes #7660: fixes first bunch of rubocop warnings
Fixes #7922 - promote uri and http to instance property

This will allow to re-use existing http connection for subsequent
requests.