HTC wifi disconnect fix

Added additional wifi supplicant state to detect disconnect, possibly a hack. Fixes #21