Fix java 6 compatibility + externalise hosted-graphite secret key in a file