Add basic infrastructure to handle commands on the client side.