How an initial public offering works in the U.S.: preparation, confidential SEC review, the S-1, the road show, pricing, listing and duties after going public.