added support for file downloading.

its stored in loginpage html (commented out)