Fixed resources copying for themes

htmlout.py now removes unnecessary files.