gril: Add functions for reading a string array
gril: Separate parsing of registration replies

Previously, replies to RIL_REQUEST_VOICE_REGISTRATION_STATE and
RIL_REQUEST_DATA_REGISTRATION_STATE were parsed using the same
function. This change separates the parsing of these replies, as the
data that is different for each type could be eventually needed.
Additionally, state parsing has changed so now all RIL states are
mapped to valid ofono core status values and the right max_cids is
returned for MTK modems.
rilmodem: Adapt drivers to change in reply parsing

gprs and network drivers are affected by the change for separating
the parsing of the replies to data/voice registration state requests.
unit: Adapt to changes in reply parsing
ril: Do not notify of SIM state in plugin

Notifying SIM state from plugin cause race condition with the
notification of the creation of the SIM interface.
mtk: Do not notify of SIM state in plugin

Notifying SIM state from plugin cause race condition with the
notification of the creation of the SIM interface.
rilmodem: Change order of signal emission

Make sure that the existence of the SIM interface is signalled before
the SIM is set as present or of the PIN state.
Merge pull request #87 from alfonsosanchezbeato/regstate

Separate registration state parsing for voice and data
sim: Add functionality needed for phonebook import

Add capability to read file meta data
Add support for reading random records
include: Add new functions for SIM reading
rilmodem: Add phonebook import driver

The rilmodem phonebook driver is based on Jolla's implementation,
concretely on the version at commit

https://github.com/nemomobile-packages/ofono/commit/d25fd17f09a5d32fd80f429179469eb71b722cdc
(Author: Jussi Kangas)

The code has been extensively re-factored though.
build: Add rilmodem phonebook atom

The rilmodem phonebook atom is based on Jolla's implementation,
concretely on the version at commit

https://github.com/nemomobile-packages/ofono/commit/d25fd17f09a5d32fd80f429179469eb71b722cdc

The original author is Jussi Kangas. This implementation has extensively
re-factored the original code.
rilmodem: Register phonebook atom
ril: Create phonebook atom
mtk: Create phonebook atom
Merge pull request #68 from alfonsosanchezbeato/phonebook-import

Phonebook import
Merge pull request #129 from alfonsosanchezbeato/fix-sim-signals

Fix order of SIM interface signals
mtk: Fix slow socket disconnection in FM

When unsetting flight mode, rild usually closes the sockets, but this
does not necessarily happens always. In some cases this disconnection
is notified to ofono a bit too late, which leaves ofono in a bad state.
This change adds a timeout so in case we actually expect the sockets to
be closed we slow down the sequence of ofono actions lo leave time for
the notification to happen.
Merge pull request #131 from alfonsosanchezbeato/fix-fm

mtk: Fix slow socket disconnection in FM