Groups css rules by media queries and extracts them to different files