Merge branch 'xep0198c'
Fix case where connection appears up but is down

Smack gets confused about connection state.  Detect with pings.