switching to mustache.js for the templating
and some general clean up