Update dialog contact fields after donor selection

Fixes #4549.
Squashed commit of the following:

commit 8ac8b5898be54cbb7e75b53a3fcd17eb3b446fef
Author: Jesús García Crespo <jesus@sevein.com>
Date:   Fri Jul 5 12:24:00 2013 -0700

    Add some extra checks

commit bcf5aa096678cdc4e973a6740f41b1d9822f3c54
Author: Jesús García Crespo <jesus@sevein.com>
Date:   Fri Jul 5 12:16:07 2013 -0700

    Rename variable name

commit b33f249538263975d7f10cf5e6e8153129141111
Author: Jesús García Crespo <jesus@sevein.com>
Date:   Fri Jul 5 12:14:51 2013 -0700

    Add Content-Type, cosmetic changes

commit 0c44e9e7b02689268024ca10aa5e9f7d930fb77f
Author: Jesús García Crespo <jesus@sevein.com>
Date:   Fri Jul 5 12:08:11 2013 -0700

    Cosmetic changes

commit 01c0314f4248e0fb97e23fcd7cd00945da115b40
Author: Jesús García Crespo <jesus@sevein.com>
Date:   Fri Jul 5 12:07:45 2013 -0700

    Limit scope of the selector to avoid conflicts

commit 3ae2ec9896855d21448621e2530fe9bfe3f57ba5
Author: Jesús García Crespo <jesus@sevein.com>
Date:   Fri Jul 5 11:58:02 2013 -0700

    Cosmetic changes

commit ae86e9f92fe589326d20109dfbe9ae6b41a5d389
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Sun Jun 2 12:10:09 2013 +0200

    Load primary contact data for donor

commit 16873ee04bce55763a561e9dd733721989bdfe54
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Sun Jun 2 12:07:49 2013 +0200

    Launch event when item is selected

commit d1c1e760c4a62c64c24f18807a2003279f51aeba
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Sun Jun 2 12:06:50 2013 +0200

    Add new class to load contact data

commit b1f048aa398c5aa8c3fc98605b0dfd2b4c88ebca
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Sun Jun 2 12:06:05 2013 +0200

    Remove first fix

commit 03aae6f8c6daa26b6d4b5786e10e92c1b3a7542c
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Wed May 29 18:16:23 2013 +0200

    Get donor name via javascript.

    Obtain donor name from relatedDonor dialog when it's changed
    by tiping, pasting or selecting

commit 81651b7a5082ec195c8afbbcd09516611be03185
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Sun May 5 05:21:55 2013 +0200

    Check the values length in related donor's form