Finished phoauth client and tests.