Gauge-theory ghosts and ghost-gauge theories