Removed some trailing spaces and move redis.yml, database.yml to sample files.

Also add database.yml and redis.yml to .gitignore file.