Start redis server for tests and take config via ENV

The code is borrowed from the redis-rb project.