Create function that returns events as a list of ts_json object
given a gid and a period of interest, the function should return a list of ts_json objects where each item represents a single continuous event.
given a gid and a period of interest, the function should return a list of ts_json objects where each item represents a single continuous event.