Integrate preproc into standard loader, decouple CSS theme, bug fixes