added redisClient, deviceProvider back to userapp constructor