CGI compatibility stuff, UI tweaks

Did some tweaking on code so that all CGI script location stuff
compatibility works.

A bunch of stuff has been changed so that UI stuff works properly;
it's now a little bit more stylish.