Move "redis" and "secrets" out of config file.

I would say this is ready to merge now, since 0.4 is released and I've written tests.