move common library codes from github.com/fujiwara/zabbix-aggregate-agent
add test to Makefile