XD-1938: Prevent shell crash in completion

- Add logging
XD-1906 WebUI: Refresh Job/Stream deployment states

- Add `$timeout` to refresh the stream/job definition list page so that the deployment state for all the stream/job(s) are in sync.
- Cancel the `$timeout` when the corresponding controller's `$scope` is destroyed.
- Make page refresh time configurable
XD-1953 Handle undeploy modules upon container shutdown

- When the container process is shutdown, the `Stream/JobModuleWatcher` in
ContainerRegistrar process `Stream/JobDeploymentsPath` node deleted event.
In this case, it triggers undeployment of all the corresponding modules.
But, by the time the undeployment happens the module context is already
closed.
- The fix checks if the module context is active when any of the
Module getComponent() is invoked.
- Fix JobModuleWatcher catch clause to catch `Exception` instead of `KeeperException`
 and subsequently check for Curator STARTED state