Changes to first review comments from Ruo-Yu

Fix merge issues.

Initialized new data members of connection handle class and return error
when dialogueID is null.

Merging multi thread T2 driver changes to mainline

1) Fix global variables for multi thread env
2) Fix static variables for milti thread env
3) Fix non thread safe standard C function calls with thread safe calls.

commit 7780a77f0cf3e5c2d3991b07f026b2a1f223bc7e
Merge: b7aa077 1bfe9c6
Author: Pavani Puppala <pavani.puppala@hp.com>
Date:   Thu Dec 4 19:42:42 2014 +0000

    Merge remote branch 'opensrc/master'

commit b7aa077886c9ada2bf13b6b8a0982e1c95d64ade
Author: Pavani Puppala <pavani.puppala@hp.com>
Date:   Tue Nov 25 20:28:38 2014 +0000

    Fix for bug #1355559

commit 439323d4d44cc45a01fbdb0febbfbb69b81b5dc1
Merge: 7dec9da d63d6ce
Author: Pavani Puppala <pavani.puppala@hp.com>
Date:   Fri Nov 21 20:30:46 2014 +0000

    Merge remote branch 'opensrc/master'

commit 7dec9da566aaaefd1fe84cd32060c91141511493
Author: RuoYu Zuo <ruo-yu.zuo@hp.com>
Date:   Wed Nov 19 06:42:02 2014 +0000

    T2 global variables changes

commit e827950309bcc9a430e98d1d846b2bb74f86f4bd
Merge: 832f2e2 37053c0
Author: Pavani Puppala <pavani.puppala@hp.com>
Date:   Fri Nov 14 01:01:04 2014 +0000

    Merge remote branch 'opensrc/master'

commit 832f2e25f48768262f713b63727b7e0b91808d35
Author: xuk <kai-hua.xu@hp.com>
Date:   Fri Nov 7 09:01:11 2014 +0000

    Make Spjrs_ and Spjrsval_ local variables

commit 5f3c1102643e929d20ffb77e638d52cc7509bdb2
Author: xuk <kai-hua.xu@hp.com>
Date:   Wed Nov 5 00:59:28 2014 +0000

    T2 thread safe java part changes

commit db923630ccb406eff4ccff65562b35b4d92e488b
Author: Daniel Lu <ping.lu@hp.com>
Date:   Fri Oct 17 07:46:33 2014 +0000

    replace c std call with thread safety version.

Change-Id: Ibab8f9b40b61c5ddc4c285ecb34e4c984881b128
Merge "Changes to first review comments from Ruo-Yu"