kwidget changes bug fixes

- $cache was used for two purposes, changed one to $cache_redirect
- when redirecting to cacheswf should not include the root in the url