fixed a little problem with chmod()
added backend functions to copy themes and import htt-template files according to the the new theme fallback functionality