Added functionality to only fetch events in a given interval (if present). Only start or stop is also possible.
Fix for empty cursors. For such cases, we return '[]' instead of 'null'.