Fix broken for_ipad and for_iphone methods on Client and DirectClient. Replace device type and families with constants. Add documentation.