Bug 868896: Support AT+CPINR for PUK locks

This patch adds support 'SIM PUK' to the AT command +CPINR in
the emulator. Most of the necessary infrastructure is already
in place.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Merge pull request #38 from tdz/bug-868896

Bug 868896: Support AT+CPINR for PUK locks. r=vicamo
Bug 837448 - fix comparing garbage data in sms_address_eq. r=hsinyi

The |addr1->len| is the number of digits, and SMS-ADDRESS packs two
digits into one octet.  So sometimes the garbage data at the end fail
the comparison, which in turn fails |sms_receiver_find_p()|, and then
results in a new fragment created with wrong parameter.
Merge pull request #40 from vicamo/bugzilla/837448/fix-intermittent-test_emulator_loopback-failure

Bug 837448 - fix comparing garbage data in sms_address_eq. r=hsinyi
Bug 897015 - Extends 'modem tech' command to support switching preferred network type.
Merge pull request #42 from EdgarChen/bug_897015

Bug 897015 - B2G Emulator: support switching preferred network type in console command. r=vicamo
Bug 845174 - B2G emulator: support RIL_UNSOL_CALL_RING. r=vicamo
Merge pull request #25 from hsinyi/bugzilla/845174/master

Bug 845174 - B2G emulator: support RIL_UNSOL_CALL_RING. r=vicamo
Bug 821615 - B2G 3G: Unable to deactivate data call on emulator. r=vicamo
Merge pull request #43 from jessi3py/jessica-master

Bug 821615 - B2G 3G: Unable to deactivate data call on emulator. r=vicamo
Bug 896920 - B2G Emulator: support conference call. r=vicamo
Merge pull request #44 from hsinyi/bugzilla/896920/master

Bug 896920 - B2G Emulator: support conference call. r=vicamo
Bug 916719 - B2G Emulator: Fix bug in amodem_clear_call

Free calls in reverse order.
Merge pull request #47 from aknow/fix_gsm_clear

Bug 916719 - B2G Emulator: Fix bug in amodem_clear_call. r=vicamo
Bug 909688 - Emulator: do not auto attach data registration. r=vicamo

Do not auto attach data registration when activating data call,
instead return error if data registration is unregistered when
activating/deactivating data call.
Merge pull request #48 from jessi3py/bug-909688

Bug 909688 - Emulator: do not auto attach data registration. r=vicamo