Structure and cooling of neutron stars: nuclear pairing and superfluid effects