Some general improvements

These range from not loading the language file multiple times to using
templates for HTML.
Merge pull request #1 from JordanMussi/proposal/general-improvements

Some general improvements