Added download option to the Tree view

Using the dulwich archive function combined with a temporary file and
Flask builtin send_file function.