FastCGI support (no, seriously) and some code cleanup.