Some documentation for include/reddav.php and a new tpl-file.

Documented include/reddav.php a bit more to understand what it is
about to try to clean up some parts.

Moved some more HTML to template file.