fixed issue 1260, auth.settings.update_fields, thanks Nafiux
some cleanup patches, thanks Alan