Fix indentation and formatting for namereg dapp.

Adds DOCTYPE and type attributes to script and style tags and removes
extranious ids applied to html/body tags due to saving source from
browser.

[d11e9]