fixing commandline repl, create temp documents from /demo/name URLs, immediate html templates