MDL-40545 add $CFG->localcachedir intended for local caching on cluster nodes
MDL-40545 convert js and theme resources to localcachedir
MDL-40545 convert font cache to localcachedir