Fix URL env var parsing for Redis and Memcached, add second Memcached instance in .travis file, add end message handler for Redis.