[FastCgi] Finish ondemand mode

This officially marks the end of phase 2 (make it work) and the start of phases 3, 4 and 5 (make it pretty, make it robust, make it fast).