Bubbles and Contagion in Financial Markets, Volume 2: Models and Mathematics