Merge pull request #3 from xfguo/master

More configure options added to specify cflags/ldflags/libxxx/....; README.md updated.
Community string check.

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

Signed-off-by: Leo Ma <leoma@credosemi.com>
Bug fix: String passing without end character '\0'

Signed-off-by: Leo Ma <leoma@credosemi.com>
Merge pull request #4 from leo-ma/master

New Feature: community string check and port configure.
Reduce a piece of malloc/free.

Signed-off-by: Leo Ma <leoma@credosemi.com>
Merge remote-tracking branch 'upstream/master'
Merge pull request #5 from leo-ma/master

Reduce a piece of malloc/free.
Agent starts by lua.

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

Signed-off-by: Leo Ma <leoma@credosemi.com>
Merge pull request #6 from leo-ma/master

Start agent from lua instead of c main.