use ajaxify to load 404 (prevents weird refreshing bug); part 1 of client side refactor: moving all template javascript vars into dom;

templates.get, templates.set for dynamic variables populated via tpls