Some style changes
Changes authentication to start using public user if it is defined in redis.