Merge from Ubuntu Touch codeline up to rev. 51

Merging (most of) the Canonical code from https://code.launchpad.net/~phablet-team/phablet-extras/ofono , up to revision 51. Contains new functionality, refactorings and bug fixes.