Refactor account and promo modal message handling code in background …
56f0709
…to make it easier to read debug and test