refactors hostname and shortname functions to set tokens only when needed - improves modularization
refactors hostname and shortname functions to set tokens only when needed - improves modularization

cirocosta/yairc