add some logging to agent to help diagnose start up issues
better logging so we can actually see where it gets stuck
Merge remote-tracking branch 'origin/master' into pjsm/2.0