Bug 814581 - Part 5/N: fix MobileMessage.
Bug 814581 - Part 6/N: fix NetworkManager
Bug 814581 - Part 7/N: fix test cases.
Bug 814581 - Part 8/N: fix debug messages as well.