Client: Limit queue size of subscriptions

E.g. introduce a parameter max_cache_size to all subscriptions and pop items from the queue when adding too many items.