some improvements for plugin development framework.

Signed-off-by: TomWu <phperwuhan@gmail.com>