refactor HTML templating to new module and add user to Persistent.