Added a struct to define a client. Updated barista core to use clients.