Major bug fix and very rough templating

Fixed bug where in some circumstances it could boot out the wrong
player. Very preliminary implementation of handlebars templating
library.