Updated templating system to use history.js, modified urls