Use display-data.html for oauth response and error, removing specific templates.
Use more useful os.path.abspath('static-templates') instead of os.path.join(os.path.curdur, 'static-templates')