Added some client management functionality, and tests for them