Why does the Moon not revolve around the Sun directly?
The simple answer is that the sun's gravity produces the same acceleration on both the Earth and the Moon. The Sun is pulling both of them along, but they are falling together.
You may imagine two skydiver jumping out of a plane at the same time (and we'd better ignore air resistance). They are subjected to gravitational forces from the Earth that vastly larger than the forces between them, but that doesn't rip them away from each other because they both experience the same acceleration.
Let's do a back-of-the-envelope calculation:
Let $M\approx 2.0\cdot 10^{30}\text{kg}$ be the mass of the sun and $m\approx 6.0\cdot 10^{24}\text{kg}$ the mass of the earth, $R\approx 1.5\cdot 10^{11}\text{m}$ the distance between earth and sun and $r\approx 3.8\cdot 10^8\text{m}$ the distance between earth and moon.
The relative acceleration of the moon respective to earth due to the difference in gravity of the sun can be approximated by $$ \Delta a = \frac{GM}{R^2} - \frac{GM}{(R+r)^2} = \frac {GM}{R^2}\left( 1 - \frac 1{(1+\frac rR)^2} \right)\approx \frac{2GMr}{R^3} $$ via Taylor expansion.
The moon's acceleration due to earth's gravity is $$ a = \frac {Gm}{r^2} $$ and we end up with $$ \frac a{\Delta a} \approx \frac{mR^3}{2Mr^3}\approx 92 $$ Personally, I'd have expected some more powers of ten here, but of course this should still be more than enough to keep the moon from wandering off...
There are 5 so called Lagrangian points, where the gravitational forces and the centrifugal forces of the rotating system balance out. This link gives a nice picture of it http://upload.wikimedia.org/wikipedia/commons/thumb/8/88/Lagrange_points.jpg/685px-Lagrange_points.jpg.
Take the point L1 from the picture and you can imagine that at least theoretically an equilibrium is achieved at this point. If an object is closer to the Sun from this point, it will fall towards the Sun and if nearer the Earth it would fall towards the Earth.
Now the distance from Earth to Lagrangian point L1 is about 1 500 000 km so anything closer than that will fall towards Earth. The moon orbits the Earth about 384 000km from Earth so Moon will fall towards Earth and therefore not orbiting the Sun.