Electron Transport and Dynamics in Magnetic and Superconducting Nanostructures