Since their domestication millennia ago, dogs have been man's best friend, and aside from friendship, centuries of selective breeding have tailored them for tasks like herding, hunting and guarding—or ...