Rudimentary CGI support

Luckily, the app seems to work just fine under CGI environment.
Slowish, but not likely to get too slow. This thing still needs
A LOT of mod_rewrite magery to hide all the juicy bits, though...