Add basic FCGI support

Adds basic fcgi support, usable by spawn-fcgi with lighttpd and all.

Should be at least a start on #582, may need a wrapper shell script to work properly(if the webserver doesn't like starting it with parameters).