Moved `enable_rhrepo_and_fetchid` function to api.utils module.

This helps both test_repository module and test_smoke module
to use it.

api.utils is choosen as the code is very specific to the API.
Merge pull request #1534 from kbidarkar/move-func-entities

Moved `enable_rhrepo_and_fetchid` function to entities module.