Basic refactoring. Including mustache.js templates, routing with sammy.js.