Support returning the new value from cache_add/cache_sub

Adds support to cache_add/cache_sub for returning the newly update value in a pvar.

Tested against couchbase and memcached backends.