Added CGI gateway for routing commands through HTTP.