kite/protocol: add KiteFromString method
kite/protocol: add tests for protocol