Removed redundant function for computing sha1 caps hash
Moved sha1 generation to caps module
Moved caps query stanza creation to caps module