Repos, Bailouts, and Instability in the Shadow Banking System