Insomnia works for this. It'll keep your wifi/3g connection active after the screen fades and locks.
There is also a toggle for SBSettings with Insomnia so that you can shut it on and off easily.. which I recommend hehe, leaving it on all the time will eat your battery.