Added redis authentication and made some other small changes