Added support for logon and logoff messages.
On handler function prefix.
Add logon and logoff handlers.