Fluctuational electrodynamics in atomic and macroscopic systems: van der Waals interactions and radiative heat transfer