Bug 816484: remember when GPS/Wifi have been suspended by Airplane mode

https://bugzilla.mozilla.org/show_bug.cgi?id=816484

DRY’ed / factorized version of #8249.