Resolve the issue around switching user when running Importer as master agent

The ImporterAgent is now aware how it is started up (master / embedded mode) allowing for us to refresh the application when a user switch is performed.