Move the client and base http command from xivo_confd_client to xivo_rest_client

the dird client will be almost identical to the confd client. This is the base
for both and for future clients