refactor and get ready for offline compressing

Same here about csscompressor