Scotland put themselves in contention for a first-ever Guinness Six Nations title with a sensational seven-try 50-40 victory over France at Murrayfield.