config: Don't write commas if not needed, default to `opt_algorithm` when adding pool without one set explicitly.
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