plugins: add support for subscription handling

Signed-off-by: Simon Busch <morphis@gravedo.de>