Firebase research

dear @Mikedgs please review this code we wrote entirely independent of you
thanks :imp: