default hostid to be the local wqhostname
tidied up hostid checking a bit
rudimentary http submission mechanism added