core: support nested plugins

Change-Id: I99c7eb33a258372e8fb8068a5d8271a999138c1d
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>