Adding data viewer, refactored templates, and removed some character encoding business