Improved the CSS caching code. Now uses a hash to determine if the css
changed and therefore whether to update it.