From Optical Magnetism to Super-resolution: Sub-wavelength Electromagnetic Phenomena in Plasmonic and Polaritonic Nanostructures