api: Application: add setApplicationNotify and processApplicationEvent