Fix problem of too many Redis connections using connection_pool.

Also moved the redis connection stuff into frontend.rb.