serve: add functional API for fetching EPG events via callback

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>