Fixed JSON syntax errors and default SQLite settings in sample config.
Close config file when loading settings.
Fix #55. Avoid KeyErrors when redis needs no password.