api: Add XIntensity and RawIntensity to `devs` output.
api: write xintensity and rawintensity using api_add_int().
Disconnect from pool, if auth is failed
Set the pool idle and switch pool, if need
Mark pool as idle if stratum restart is failed