TBR: Prepping Firebase for persistence abstraction

Switching from singleton to instantiatable with static configuration. It
turns setAndroidContext is idempotent; setPersistenceEnabled was causing
the exception on rotation, and that should be cheap enough to do in a
static initializer.

Change-Id: I604718c7c54809594157527af9092fa8dd7ab23d
6 files changed