phoromatic: Rework idle support and add maintenance mode support to client