Added metadata support for subscriptions

Fixes #108