Autonomous machines and clocks in quantum thermodynamics