fastcgi with rails 3

Hi, I've made some changes to make it work with fastcgi and rails 3. 

The original code of the fastcgi was outdated.

I hope it helps to improve the program.

Greetings!