Galileons on cosmological backgrounds