Trim trailing spaces.
Remove ".svn" directories from .gitignore.
html: Use uppercase "DOCTYPE" for consistency.
Update README.md.

* add a link to license
* use the same scheme for headers