Support configurable template data languages (WIP)

This pull addresses #26, removing all assumptions that we are in an HTML file, and respecting the user's template data language selection from "Settings->Template Data Languages".