Move type URL resolution to separate function
Move type URL resolution to separate function

This is useful for JSON parsing, as we need to parse the type URL,
process it, and use the type information to parse the rest of the text.

qitab/cl-protobufs,qitab/cl-protobufs