Add debug attribute to session

If set to True, add some useful variable to shell namespace:
	- applet: dict containing weak references to all applets
	- manager: dict containing all managers
If varname doesn't exist...