add a base class for all WSGI applications
replace simple Cookie auth with auth_tkt
add logout for admin and Editor consoles
move Mako templating up to base WSGI app
rename pg table names for compatibility with existing data