GPII-1017: Fixed up according to Antranigs comments - ie. renamed token to userToken in most places, changed applySolution to base it's decision on whether an update or login is being done based on an extra boolean argument. Renamed solutionsSnapshot to something less confusing