Add a format-agnostic iterator creation mechanism

Iterators now expose an event providing function so that a user does not
have to know the input trace format to get "bt_ctf_event"s.

A context can now create a specialized iterator depending on its input
trace format.