session: introduce api to register session create and destroy callbacks