add thrift example -- common library, client, and server