add firebase support and environment-specifc configurations