Add application open/close tracking.
Merge branch 'master' of https://github.com/aurelient/selfspy