Refs #8633. Removed windows paths. Now uses settings.xml

The fail was becasue there had been hard coded paths put in, and they were windows paths to boot.

The function now relys on a settings.xml file
Refs #8633. Updated to use the new API and fail gracefully

There is now a 'directory exists' check on the directory given to the textbox.

Added the procedures script, as the save was reliant on it.

Updated the save and procedures scripts to use the new api