add hostmetadata support
add active agent templates
fix nullpointer on ZabbixActiveTask.handleResult