Now using static_url is optional for CGI and FastCGI deploys.
Ported a fix from the UI branch. Disabled sessions.