Added composeQuery and parseQuery functions
Added composeQuery and parseQuery functions

Addition of composeQuery and parseQuery functions to convert between
typestring, hkid, and namesegment into a serialized message.

AaronGoldman/ccfs,AaronGoldman/ccfs,AaronGoldman/ccfs