Added an onTabChange event.

Added an onTabChange event, which fires an event
whenever a tab is changed. The callback function passes
tab, navigation, oldIndex, newIndex, in that order.