Start agent at snmp.lua

Remove "main" function at snmpd.c and replaced with "luaopen_lualib_core" instead.