Login endpoint switch

Allows the session cache to store one API key per endpoint, so that rememberMe on production will not be blindly copied as the API key for staging and vice versa.