further work towards styles and size measurements 4:
-various fixes
-use css parser
-small restructuring
still unfinished:
EPS files, unit conversion