Refactor baremetalclient

As suggesed in https://review.openstack.org/#/c/42098/1

Change-Id: I3058cb1efb339971cf185518164f9bab574964cf
Merge "Refactor baremetalclient"