Add _pauseSession and _resumeSession events

Fixed _endSession when switching activity

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>