When filling in the cloud credentials before clicking "Play", the widget server bootstraps a new cloudify manager for the user.
This should happen only once per user.
This means the following:
When install a new recipe, the name of the application / service should be kept by the widget server (need to parse the -application.groovy or -service.groovy file)
A mapping between the user name and the cloudify manager should be help by the widget server
When uninstalling, the name of the app/service should be retreived from the map, and the widget server should invoke the uninstall-application/service command. If after uninstalling the bootstrapped cloudify manager doesn't have anymore services / applications installed, it should also be terminated.
When filling in the cloud credentials before clicking "Play", the widget server bootstraps a new cloudify manager for the user. This should happen only once per user.
This means the following: