Refactor force basic auth, now all modules which use fetch_url() can use force_basic_auth

Check out PR: https://github.com/ansible/ansible/pull/9281 which is related to this PR.