A bunch of updates.

1. Set error status in mib item query.
2. New method for calling MIB handler in lua from C.
3. Regenerate group index table in each mib node access.