Fix for issue #3: create a stub class and singleton to represent main

I've been running with this change for a week or two now.
The main hazard is that some bit of Python code might assume that current() == None implies main.
This will no longer be true.