Add a method to detect when the script has been started as a FastCGI service. Related to #10 and #11