Fixed issue #32 clean protocol-specified fields. Fixed new/edit/copy states and trouble with id when save connection settings.