consistently remove domain from short hostname

This resolves the unnecessary warning thrown by ceph-deploy mon create when host:ip notation is used to specify the mon and the remote host reports an fqdn as its hostname:
http://tracker.ceph.com/issues/6269
The hostname handling code is extracted into remote_shortname() method in ceph_deploy.misc and reused across ceph-deploy to improve consistency.