Updated php client to support v1_0 of swu api. Added simpletest cases.