A little cleanup
Don't use an app object; register with one via a function
Set an __all__