Shanghai has agreed a deal to host Formula 1 races until 2017, ending months of speculation about the future of ...