Add function to load Publish file

Loading the file on every terminal start caused slowness
These functions aren't used very often, so we will
explicity load them as necessary.
Refactored slightly to select directory paths
Snapin features used infrequently - lazy load
Use builtin ScriptRoot