fixed bug:causing other plugins breaks,
some improvements for plugin development framework.

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