Added a Signal which is used to do something before the session is closed.

Added a Signal to notice that the session was just opened.
Merge pull request #497 from danielknorr/XnatSessionClosedOpenedSignal

Added a Signal which is used to do something before the session is opened or closed.