Originally the $CFG->themedir variable was completely replacing the dirroot/theme directory - instead make it merge with standard themes and server all files through /them/styles.php and /theme/image.php
this would allow us to place custom themes in dataroot or any other arbitrary location