Refactors app & introduces Mustache templates