Make HSClient a class

Make all client_*() functions member functions of that HSClient class.
Introduce setter and getter for HSClient::tag_