Setting up firebase connection and basic auth.