reorder custom header/footer stuff in order to ease hacking.

  That way one can replace local hosting of assets files by CDN only by
  modifying custom files.