Completely reworked the server to use handlebars.