Pātuhitia tēnei: Stochastic integration and generalized martingales