Merge pull request #5 from leo-ma/master

Reduce a piece of malloc/free.
Merge pull request #6 from leo-ma/master

Start agent from lua instead of c main.
Refactoring source files and directories; Some documents.

This commit try to make sure we can writting install script for most OSs easily.

SNMP Agent and SNMP library are seperated to different directories.

Changes:

- SmartSNMP libraries:
  - All lua library move to `lualib/smartsnmp`, so we can *require* directly.
  - SmartSNMP lua C module will be built to `build/smartsnmp/core.so`.
- SmartSNMP agent application:
  - Move SNMP Agent `snmpd.lua` to `bin/snmpd`, later it will be install to `/usr/sbin/` or some where.
- SmartSNMP agent MIB node implementation.
  - Move `example` to `mib`.
  - In future, *private* mib should be placed to `private` directory.
- Remove lots of global object.
- Import getopt lua function for parsing arguments in `snmpd`.
- Simple document in doc/api.md.

Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>
Configration file load; Load MIB module files specified in config file; Minor typo bug fix.

And, getopt and another new funciton all move to utils.lua.

Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>
Missing config file for last commit.

Signed-off-by: Xiongfei Guo <xfguo@credosemi.com>
Merge pull request #7 from leo-ma/master

Fix Memory leak in libevent transport; Reduce malloc/free operations in datagram parsing.
Merge pull request #8 from xfguo/master

Try to make SmartSNMP can install in most OS easily; Import config file.
Build get/set functions for mib nodes

Signed-off-by: Leo Ma <leoma@credosemi.com>