Made decision to use mod_rewrite or direct wrapper for JS/CSS intelligent

If the URL contains "main.php", we know that they're accessing without
the rewritten URLs, possibly because their server doesn't support
mod_rewrite, so we directly use the GetCSS/GetJS wrappers.