Fixed CSS to use absolute images.
  Use anchored regexps for the rewrites.
  Remvoed debugging code.