Add helpers to get hostnames for OpenStack endpoints

This is common code that all barclamps need, so a helper is a good
thing.