Full-featured CGI gate. Well, almost full.
Minor changes.
Merge pull request #186 from uonline/nodegate-cgi

CGI gate