Migrate check_host and remote_ssh_cmd to library

One by one I want to migrate these utilities over to the libraries while I have
a quiet moment or two. Here's another two - check_host and remote_ssh_cmd. The odd bit is, I'm not sure check_host is actually used anywhere.. though I'm inclined to leave it in because it is useful.