Fixed a bug on the caching system and added initial CGI stuff