Fixes int replication/memcached test:
1. Not waiting for flush_all
2. Delete redundant time.sleep() and wait()'s
3. Fix for cfg files