move plugins to lib

Signed-off-by: ShiningRay <tsowly@hotmail.com>