(#706) - fix limit implementation in api.changes

* limit action should be done after deduplication and
filter aplication
* this implementation could be much less performant as
we don't limit the result set (but how can we improve it?)