Here's a concise Economist article on dog behavior and why and how dogs have secured themselves in the hearts of humans:
Sensitive Souls: How dogs became man's best friend