Use promises with Firebase.