nmconfig: add function for freeing up profiles
nmconfig: add code that calls UI
also write changes to disk when finish is called
nmconfig: check if nmprofile/nmdevice is non-null
before freeing them
nmconfig: destroy the progress dialog after we're finished