Re-factor rilmodem initialization code to enable set online/offline
and to properly expose IMEI at all times ( even w/out SIM ).  This
also includes style cleanup of gril/gril.c.

This commit is based on code written by the following original
authors:

Original-Author: Jussi Kangas <jussi.kangas@tieto.com>
Original-Author: Miia Leinonen <miia.leinonen@oss.tieto.com>
Original-Author: Martti Piirainen <martti.piirainen@oss.tieto.com>
Original-Author: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
rilmodem/call-volume: Fix parsing of SET_MUTE reply.

Based on commit '47ef2123723f347994e34a8e70c1183e38c3ce97' from
branch 'master' of https://github.com/nemomobile-packages/ofono.

Original-Author: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
Ensure that *netreg_data is always set in callback data (LP: 1234491).

ril_register_auto() correctly set cdb->user, whereas
ril_register_manual() did not.  As both shared the same callback
function, ril_register_cb(), and this function always expected
cdb->user to be non-NULL, calls to register_manual() could
cause a segfault.
Merge pull request #2 from tonyespy/power-control

Re-factor rilmodem initialization code to enable set online/offline
Merge pull request #5 from tonyespy/mute-fix

rilmodem/call-volume: Fix parsing of SET_MUTE reply.
Merge pull request #6 from tonyespy/netreg-crash-fix

Ensure that *netreg_data is always set in callback data (LP: 1234491).
Merge pull request #1 from rilmodem/master

Updating