Nekrasov's Partition Function and Refined Donaldson-Thomas Theory: the Rank One Case