CONFIG REWRITE: strip multiple empty lines.
CONFIG REWRITE: remove orphaned lines.
CONFIG REWRITE: actually rewrite the config file, atomically.
CONFIG REWRITE: Use sane perms when creating redis.conf from scratch.