Improve test framework.
Merge new client to master.
Merge master into 127.