Added lifecycle callbacks.
Merge branch 'master' of https://github.com/ktxsoftware/Kha