Added composeQuery and parseQuery functions

Addition of composeQuery and parseQuery functions to convert between
typestring, hkid, and namesegment into a serialized message.
Merge branch 'master' of https://github.com/AaronGoldman/ccfs