Allow default client settings to be configurable

Also, a few misc code style changes in the settings applet

Fixes #240