Switch to redis for sessions and a few coding style fixes