Added mustache template and get ridden of (most of) uggly html mixed in
js code. I still need to verify some other pieces to be sure, but the
main view is clean.