shell, NM Model: Don't reset connection settings after failed apply.

That would throw away uncommitted changes in the dialogs.
shell, NM Model: Export all address and route elements as strings.

Because they are imported as strings.
shell, NM Model: Allow both netmask and prefix for IPv4 addresses and routes.

Fixes #1181