Fix favicon, change it to proper img tag.

Also refactor syncview, extract out render function.
Now we able to use arbitrary dom node as a base to render template.