Fix session invalidation - will establish a new session if current one is stale; fix backend getting mixed up with new public gems