Categorification of Donaldson-Thomas theory using perverse sheaves