Move redis and session storage to shared code.