For 156 years the firm at 200 West Street has been in the room when companies go public, countries borrow, and fortunes change hands. Here is how the deal machine actually works.