adds firebase integration
inits firebase only if required