refactor and get ready for offline compressing

I liked using csscompressor too but it doesn't support remapping relative urls which is a must since we change the location of the css file after compressing. That means any paths to images or fonts in the css files will be broken after compressing.