trace: Improve/fix add_events_deltas()
Created by: valschneider
While we're not supposed to get duplicate timestamps (see trappy.utils::handle_duplicate_index), these seem to still happen and they throw pandas.DataFrame.loc[] off balance.
Use diff() + shift() instead of handcrafted equivalents. Performance difference is insignificant, but at least we rely on a standard pandas API.