Add a -clean command line for resetting configuration

Also create a gear.target and gear.slice and ensure they are
properly initialized (including when cleaned and the daemon config
is out of date).