Static Website serving and listing

adds
 trailing slash redirection
 index.html return
 templated directory listing

Signed off : Simon Kirkby <tigger@interthingy.com>
this function is pretty large and hard to read. I'm sure this can be decomposed into something simpler / cleaner (even if parts of this are defined as internal functions)