Migrate client code from libra codebase

Change-Id: Icd9d758e45c7167c5b8db7aa2c5e15b4bb93c766