Unconventional Superconductivity and Magnetism in Lanthanide and Actinide Intermetallic Compounds