[82432092] - Additional fixes where loggregator listener was added too
early prior to the application being published or started. Code
clean-up. Also added error checking to verify that when starting the
console tailing for application logs, that the application is deployed.