How the Economy Works: Confidence, Crashes and Self-Fulfilling Prophecies