Thermodynamic, alloying and defect properties of plutonium: Density-functional calculations