api: implement subscribeToFeed/unsubscribeFeed (closes #623)