Client config generation changed.

Some other stuff involving logins too.