I've just checked, I was wrong about the trains. There is in fact one train an hour from London Victoria to Gatwick Airport all through the night (the journey takes 40 minutes).

You can get train times here http://www.railtrack.co.uk/

It would still be better to stay in London though.
_________________________
Remind me to change my signature to something more interesting someday