Client API functions development. Test suite fixes. Various changes in many places.