add rpc.go

rpc.go contains  a full implementation of
mysql client <=> server protocol