Bug 962644 - Part 0: extract firefoxAccountsExist and friends.