Implement ${host,service}.<name>$ runtime macros.

Refs #5855