shell, base: Move cockpit.hash into base.