PLATFORM-1445 # total session and cookie destruction upon login and logout

- new $t method
	{{$t->triggerEvent($event)}}	- call when dev want to register an event
	(so far only "LOGGEDIN" and "LOGGEDOUT" are supported)