Zaslat SMS: Spectral Theory of Localized Resonances and Applications