Fixing endpoints, setting up auth. Firebase sync is left.