Insomnia and Insomnia Pro for iPhone

Allows applications to continue to run and WiFi to stay connected long after the screen has been switched off. Runs as a background daemon with a status bar icon and survives reboots and re-springs.

Free Version

Contains a banner ad.

Pro Version

Has no ads and has a scheduling feature.

Available to buy in Cydia for $2.99.