make theme work for subdirectories; change external scripts/styles to load on same protocol