thrift chat initial commit, implemented register call