Check SHA1 valid
Added check for caps in stanza
Added _handle_presence_caps
Handle unsupported hash, and legacy caps