Dark energy and cosmology with viscosity