show exception and stack trace in error page
update templates
add initial support for oauth