more fixes for specific JMX entities, tidying up installation of agent and disconnecting feeds
check if hostname is longer than 64 chars and attempt to repair the hostname on localhost (mapping to 127.0.0.1) if so
make java installation retry once on errors (due to ubuntu sometimes not fully ready on boot in AWS... blech)
tweak logging and error handling