Djehuty: A Code for Modeling Whole Stars in Three Dimensions