fixed getItemFutureIdByHostMetric and updateFuture

getItemFutureIdByHostMetric query was ~wrong, though it only manifests its wrongness when run from go; hosts.hostid = items.hostid was important

updateFuture is now up to date with new habbix sync cmd
css styling, post/get fix for graph.js and template fix for memory tmpl
getItem errors if ifid < 0
Fixed itemHandler for *uint values