On the Mechanisms of the Effects of Larval Density and Temperature on Drosophila Development