allow to pass application data to callbacks
Merge branch 'devel' into feature/shutdown