Reality and the Role of the Wavefunction in Quantum Theory